What Is The Use Of ModelState IsValid In MVC?
What Is The Use Of ModelState IsValid In MVC? ModelState. IsValid tells you if any model errors have been added to ModelState . The default model binder will add some errors for basic type conversion issues (for example, passing a non-number for something which is an “int”). You can populate ModelState more fully based on