Skip to content

lloydpowell88/PowellSoft.Attributes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

PowellSoft.Attributes

ValidateModelStateAsyncAttribute

Include Validate Model View State attribute for .net core.

The ValidateModelStateAsyncAttribute implements IAsyncActionFilter. It simply checks whether the ModelState is valid. If it isn't then it will set the context result to be a BadRequestObjectResult, passing in the ModelState.

Credit where it's due https://www.talkingdotnet.com/validate-model-state-automatically-asp-net-core-2-0/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages