コード例 #1
0
        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: EventBanner
        public ActionResult Index()
        {
            var model = _bannersOnHomePageRepository.GetAll();

            return(View(model));
        }