// EDIT public ActionResult EditDriverGroup(DriverGroupModel driverGroup) { try { var results = driverGroupAdapter.EditDriverGroup(driverGroup); if (results != 1) { return(View("~/Views/Error/EnterAllInfoError.cshtml")); } return(RedirectToAction("ViewAllDriverGroups")); } catch { return(View("~/Views/Error/EnterAllInfoError.cshtml")); } }