public ActionResult CheckModel(Models.SomeModel SomeModel) { if (ModelState.IsValid) { return(Json(new { Status = "OK" })); } return(Json(new { Status = "ERROR", State = ModelStateToJson(ModelState) })); }
public JsonResult RegistrationStep3(Models.SomeModel SomeModel) { if (ModelState.IsValid) { return(Json(new { Status = "OK" })); } return(Json(new { Status = "ERROR", State = Helper.ModelStateToJson(ModelState) })); }