model validation

Checking that incoming data meets the rules, such as required fields and ranges, before the application acts on it.

In more detail

Validate at the boundary, before business work or persistence, and return errors that name the field and the rule. ASP.NET Core runs data annotation validation automatically for [ApiController] controllers.

Related terms

Taught in

References