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)); }
// GET: EventBanner public ActionResult Index() { var model = _bannersOnHomePageRepository.GetAll(); return(View(model)); }