//DELETE public ActionResult DeleteCatgs(int id) { categBLL.DeleteCatgs(id); List <CategoryVM> catgs = categBLL.getAllCategs(); ViewBag.catgs = catgs; return(RedirectToAction("getAllCatgs", "course_category")); }