public ActionResult Delete(int ID) { List <INTCategory> listcategory = INTCategory.GetAll(); listcategory = listcategory.FindAll(x => x.CatID == ID); if (listcategory != null) { int i = INTCategory.Dell(ID); } return(Json(new { data = "1" }, JsonRequestBehavior.AllowGet)); }
// GET: Category public ActionResult Index() { List <INTCategory> listcategory = INTCategory.GetAll(); return(View(listcategory)); }