Пример #1
0
        // 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));
        }
Пример #2
0
        // GET: Admin/SubCategory
        public ActionResult Index()
        {
            List <SubCategory> modelList = Handler.GetSubCategories().ToList();

            return(View(modelList));
        }