Example #1
0
        public async Task <SettingsView> GetSettingsView()
        {
            var carBrends = await _homePageLogic.GetCarBrandsCarousel();

            var view = new SettingsView(carBrends);

            return(view);
        }
        public async Task <ActionResult> Index()
        {
            HomeView homeView = new HomeView()
            {
                CarBrands             = await _homePageLogic.GetCarBrandsCarousel(),
                Discounts             = await _homePageLogic.GetRelevantDiscountsForHomePage(),
                HomeMainCarouselItems = await _homePageLogic.GetMainCarousel()
            };

            return(View(homeView));
        }