// GET: Home public ActionResult Index() { HomeViewModel model = new HomeViewModel { FeaturedProducts = Handler.GetFeaturedProducts(), NewProducts = Handler.GetNewProducts(8), Categories = Handler.GetCategories(), SubCategories = Handler.GetSubCategories() }; return(View(model)); }
// GET: Admin/SubCategory public ActionResult Index() { List <SubCategory> modelList = Handler.GetSubCategories().ToList(); return(View(modelList)); }