ASP.NET Core Model Validation Finally Made Sense to Me: Data Annotations and ModelState
When I first started working with forms in ASP.NET Core MVC, validation looked simple. You add [Required] to a property, ASP.NET somehow knows the field is required, and an error…
