示例#1
0
        public ActionResult DeleteEmployee(int id)
        {
            _employeeStorage.DeleteEmployeeById(id);

            return(RedirectToAction("Employees"));
        }
示例#2
0
 public ActionResult DeleteEmployee(int id)
 {
     employeeRepository.DeleteEmployeeById(id);
     return(RedirectToAction("Employees"));
 }