Tag: Utility rss

Posts

13 April 2019 / / ASP.NET Core
Checking if a model is valid is pretty an automatic behavior at this point. Whenever a request expects a model, we need to make sure that the validation is good, and we use ModelState.IsValid for that. But that becomes boring, most of the time (if not always) we redirect to the same page, another page or return a bad request in case of an API.