public ActionResult Edit(Shift shift) { try { _shiftRepository.Edit(shift); return(RedirectToAction("Index")); } catch { return(View()); } }