示例#1
0
        // GET: DepartmentController/Delete/5
        public ActionResult Delete(int id)
        {
            bool Delete = department.Delete(id);

            TempData["message"] = "Delete success...";
            return(RedirectToAction(nameof(Index)));
        }
示例#2
0
        public ActionResult DeleteConfirmed(int id)
        {
            _departmentManager.Delete(id);

            return(RedirectToAction("Index"));
        }