public ActionResult Delete(string method, int[] CategoryIDs) { if (CategoryIDs != null) { bool result = CatalogBLL.Category_Delete(CategoryIDs); } return(RedirectToAction("Index")); }
public ActionResult Delete(int[] categoryIDs) { if (categoryIDs != null) { CatalogBLL.Category_Delete(categoryIDs); } return(RedirectToAction("Index")); }
public ActionResult Delete(int[] categoryIDs) { if (categoryIDs != null) { var rs = CatalogBLL.Category_Delete(categoryIDs); if (rs == true) { TempData["Error"] = "<script>alert('Xóa category 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")); }