How to Use ModelState Validation in ASP.NET Core Web API

added by DotNetKicks
4/1/2022 4:02:46 PM

255 Views

In this article, we are going to talk about what, why, and how to use ModelState validation in ASP.NET Core. We always strive to separate concerns and decouple different application layers when designing our APIs. Since client input is the first thing that comes to our web API, we usually want to validate that input before further processing.


0 comments