// GET: DepartmentController/Delete/5 public ActionResult Delete(int id) { bool Delete = department.Delete(id); TempData["message"] = "Delete success..."; return(RedirectToAction(nameof(Index))); }
public ActionResult DeleteConfirmed(int id) { _departmentManager.Delete(id); return(RedirectToAction("Index")); }