コード例 #1
0
 public ActionResult Delete(int[] employeeIDs = null)
 {
     if (employeeIDs != null)
     {
         CatalogBLL.DeleteEmployees(employeeIDs);
     }
     return(RedirectToAction("Index"));
 }
コード例 #2
0
 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"));
 }
コード例 #3
0
 public IActionResult Delete(int[] employeeIDs)
 {
     CatalogBLL.DeleteEmployees(employeeIDs);
     return(RedirectToAction("Index"));
 }