public IActionResult Edit(DeptViewModel model) { var result = deptManager.Edit(model); if (!result) { return(RedirectToAction(nameof(Index), model.Department)); } return(RedirectToAction(nameof(Index))); }