public ActionResult CreateSubject(SubjectModel sModel) { if (ModelState.IsValid) { var result = _iSetupService.CreateSubject(sModel); return(Json(result, JsonRequestBehavior.AllowGet)); } else { return(Json(rModel, JsonRequestBehavior.AllowGet)); } }