If you are programming in ASP.NET 5.0 MVC, you will certainly have seen the class ModelState pop up a few times. Ever wondered what that is, or what the property ModelState.IsValid does, and why it’s there? So did I. In this post, we’re going to explain what the ModelState is, and what it is used for. We’ll also show how to…