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