public ActionResult Delete(string method = "", int[] orderIDs = null) { if (orderIDs != null) { SaleManagementBLL.Order_Delete(orderIDs); } return(RedirectToAction("Index")); }
public ActionResult Delete(int[] orderIds = null) { ViewBag.Delete = false; bool rs = false; if (orderIds != null) { rs = SaleManagementBLL.Order_Delete(orderIds); if (rs == true) { TempData["orderError"] = "<script>alert('Xóa order thành công!');</script>"; return(RedirectToAction("Index")); } else { TempData["orderError"] = "<script>alert('Xóa không thành công !');</script>"; return(RedirectToAction("Index")); } } return(RedirectToAction("Index")); }