SyntaxFix
Write A Post
Hire A Developer
Questions
If anyone is here for WebApi (not MVC) you just return the ModelState object:
ModelState
return Request.CreateErrorResponse(HttpStatusCode.BadRequest, ModelState);