public ActionResult Index()
        {
            var headerCategories = _categoryRepository.GetRootCategoriesWithThumbnail((int)Entity.Enumerable.TypeImage.Thumbnail);

            ViewBag.HeaderCategories = headerCategories;
            var homeModels = _homeEntityRepository.GetModels(false);
            var products   = _productRepository.GetSeasonOffers((int)Entity.Enumerable.TypeImage.Thumbnail);

            var banners = _bannersOnHomePageRepository.GetAll();

            ViewBag.BannersOnHomePage = banners;
            ViewBag.SeasonOffers      = products;
            ViewBag.MetaTitle         = "Пирамида строй";
            return(View(homeModels));
        }
예제 #2
0
        // GET: HomeEntity
        public ActionResult Index()
        {
            var model = _homeEntityRepository.GetModels(true).ToList();

            return(View(model));
        }