Esempio n. 1
0
 public virtual async Task <ActionResult> AddSlideShow()
 {
     return(View(new SlideShowViewModel
     {
         SlideShowImages = await _slideShowService.GetSlideShowImages()
     }));
 }
Esempio n. 2
0
        public virtual async Task <ActionResult> Index()
        {
            var model = new HomePageViewModel
            {
                NewestProducts     = await _productService.GetNewestProducts(8),
                MostViewedProducts = await _productService.GetMostViewedProducts(8),
                PopularProducts    = await _productService.GetPopularProducts(8),
                Categories         = await _categoryService.GetSidebarCategories(5),
                SlideShows         = await _slideShowService.GetSlideShowImages(),
                PostCategories     = await _postCategoryService.GetSideBar()
            };

            var metaTags = await _settingService.GetSiteMetaTags();

            ViewBag.Keywords        = metaTags.Keywords;
            ViewBag.MetaDescription = metaTags.Description;

            return(View(model));
        }