So I have a view called index that lays out all of the threads in my database. Then inside that view I\'m loading all the comments on the threads. When I call on my form tha
Before checking your error, you need to know why is the model state invalid. You can easily do that by debugging and seeing the list of errors.
The second error should be a separate questions as I believe to be written in stackoverflow guidelines.
Use the code below to iterate through the errors. Then you can see what field and what object is failing on validation. And then you can go from there. Just looking at the IsValid property is not going to give enough information.
var errors = ModelState.Values.SelectMany(v => v.Errors);
And then loop through the errors.