예제 #1
0
        // GET: AllItems
        public ActionResult AllItems()
        {
            var model = _db.GetCategories();

            return(View("AllItems", model));
        }
        // GET: AllSubcategories
        public ActionResult AllSubcategories()
        {
            var model = _db.GetCategories().OrderBy(c => c.CategoryName);

            return(View("AllSubcategories", model));
        }