// 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)); }