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