public ActionResult Remove(int id)
 {
     employeeRepository.Delete(employeeRepository.Get(id));
     userLoginRepository.Delete(userLoginRepository.Get(id));
     return(RedirectToAction("EmployeeList", "Employee"));
 }
 public ActionResult Remove(int id)
 {
     clientRepository.Delete(clientRepository.Get(id));
     userLoginRepository.Delete(userLoginRepository.Get(id));
     return(RedirectToAction("ClientList", "Client"));
 }
Exemplo n.º 3
0
 public ActionResult Remove(int id)
 {
     labourRepository.Delete(labourRepository.Get(id));
     userLoginRepository.Delete(userLoginRepository.Get(id));
     return(RedirectToAction("LabourList", "Labour"));
 }