Validate Model State automatically in ASP.NET Core 2.0

By Talking Dotnet

A ModelState is a collection of name and value pairs submitted to the server during a POST request. It also contains a collection of error messages for each value. The Modelstate represents validation errors in submitted HTML form values. Model validation is the first statement in each controller action method to check for any error […]

The post Validate Model State automatically in ASP.NET Core 2.0 appeared first on Talking Dotnet.

Source:: ASP.NET