public ActionResult EditTypical(TypicalMgmtInfo tInfo, string typeOfSubmit) { if (ModelState.IsValid) { using (var sRepository = new SpecRequestRepository()) { sRepository.UpdateTypical(tInfo, typeOfSubmit != "Save Changes"); return(RedirectToAction("Manage")); } } return(View(tInfo)); }