public ActionResult Validate(string propName, EntityVm model) { var errors = _validator.ValidateEntity(model); if (errors.ContainsPropertyError(propName)) { HttpContext.Response.StatusCode = (int)HttpStatusCode.BadRequest; return(Json(new ErrorResultVm(errors.PropertyErrors(propName)))); } return(Json(true)); }