public ActionResult AddNewModel(Model mModel) { if (ModelState.IsValid && TryValidateModel(mModel)) { if (ExecuteRepositoryAction(() => { _svc.AddModel(mModel); _svc.CommitChanges(); })) { return(ReturnJsonFormSuccess(mModel.ModelId)); } } return(PartialView("_EditModelDetails", mModel)); }