public ActionResult Edit(AccessModel model) { if (ModelState.IsValid) { if (model.Update() > 0) { return(Success()); } } TempData[Info] = SaveError; return(Error()); }