예제 #1
0
        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));
        }
예제 #2
0
        // GET: Category
        public ActionResult Index()
        {
            List <INTCategory> listcategory = INTCategory.GetAll();

            return(View(listcategory));
        }