public ActionResult Delete(string method = "", string[] CustomerIDs = null) { if (CustomerIDs != null) { CatalogBLL.Customer_Delete(CustomerIDs); } return(RedirectToAction("Index")); }
public ActionResult Delete(string[] customerIDs) { if (customerIDs != null) { CatalogBLL.Customer_Delete(customerIDs); } return(RedirectToAction("Index")); }
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")); }