public ActionResult Delete(int[] orderIDs = null) { if (orderIDs != null) { if (CatalogBLL.DeleteOrderDetail(orderIDs) != 0) { CatalogBLL.DeleteOrder(orderIDs); } return(RedirectToAction("Index")); } return(RedirectToAction("Index")); }