Ejemplo n.º 1
0
 public ActionResult Delete(string method = "", string[] CustomerIDs = null)
 {
     if (CustomerIDs != null)
     {
         CatalogBLL.Customer_Delete(CustomerIDs);
     }
     return(RedirectToAction("Index"));
 }
Ejemplo n.º 2
0
 public ActionResult Delete(string[] customerIDs)
 {
     if (customerIDs != null)
     {
         CatalogBLL.Customer_Delete(customerIDs);
     }
     return(RedirectToAction("Index"));
 }
Ejemplo n.º 3
0
 public ActionResult Delete(string[] customerIDs)
 {
     if (customerIDs != null)
     {
         var rs = CatalogBLL.Customer_Delete(customerIDs);
         if (rs == true)
         {
             TempData["Error"] = "<script>alert('Xóa customer thành công!');</script>";
             return(RedirectToAction("Index"));
         }
         else
         {
             TempData["Error"] = "<script>alert('Xóa không thành công !');</script>";
             return(RedirectToAction("Index"));
         }
     }
     return(RedirectToAction("Index"));
 }