public ActionResult Delete(string method, int[] EmployeeIDs) { if (EmployeeIDs != null) { bool delete = HumanResourceBLL.Employee_Delete(EmployeeIDs); } return(RedirectToAction("Index")); }
public ActionResult Delete(string method = "", int[] employeeIDs = null) { if (employeeIDs != null) { HumanResourceBLL.Employee_Delete(employeeIDs); } return(RedirectToAction("Index")); }
public ActionResult Delete(string method = "", int[] employeeIds = null) { if (employeeIds != null) { bool rs = HumanResourceBLL.Employee_Delete(employeeIds); if (rs == true) { TempData["employeeError"] = "<script>alert('Xóa employee thành công!');</script>"; return(RedirectToAction("Index")); } else { TempData["employeeError"] = "<script>alert('Xóa không thành công !');</script>"; return(RedirectToAction("Index")); } } return(RedirectToAction("Index")); }