public ActionResult Details(Department department) { try { _iFDepartment.Update(department); return(RedirectToAction("Index")); } catch (Exception ex) { return(View()); } }
public ActionResult Update(Department department) { var createdDepartment = _iFDepartment.Update(UserId, department); return(RedirectToAction("Index")); }