public ActionResult Delete(int[] employeeIDs = null) { if (employeeIDs != null) { CatalogBLL.DeleteEmployees(employeeIDs); } return(RedirectToAction("Index")); }
public ActionResult Delete(int[] employeeIDs = null) { if (employeeIDs != null && CatalogBLL.DeleteEmployees(employeeIDs) > 0) { // CatalogBLL.DeleteEmployees(employeeIDs); SetAlert("Delete Employees success !", "success"); } else { SetAlert("Delete Employees fail, Because of the associated constraints !", "danger"); } return(RedirectToAction("Index")); }
public IActionResult Delete(int[] employeeIDs) { CatalogBLL.DeleteEmployees(employeeIDs); return(RedirectToAction("Index")); }