// 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));
        }
Example #2
0
        // GET: Admin/Category

        public ActionResult Index()
        {
            List <Category> modelList = Handler.GetCategories().ToList();

            return(View(modelList));
        }