public ActionResult DeleteEmployees(int id, FormCollection collection) { try { if (employeesDAO.DeleteEmployees(id)) { return(RedirectToAction("IndexH")); } else { return(View("DeleteEmployees")); } } catch { return(View("DeleteEmployeese")); } }
public int DeleteDepartment(string manv) { return(employeesDAO.DeleteEmployees(manv)); }