I have this function in my controller.
[HttpPost] public ActionResult Edit(EmployeesViewModel viewModel) { Employee employee = GetEmployee(viewModel.Empl
If anyone is here for WebApi (not MVC) you just return the ModelState object:
ModelState
return Request.CreateErrorResponse(HttpStatusCode.BadRequest, ModelState);