Example #1
0
        public ActionResult Home()
        {
            ViewBag.Title     = "Home Page";
            ViewBag.SlideList = _homeServices.ListSlide();
            var seo = _homeServices.GetHomeSeo();

            ViewBag.featuredProduct   = _homeServices.GetFeaturedProducts();
            ViewBag.topHotProduct     = _homeServices.GetTopHot();
            ViewBag.bestSellerProduct = _homeServices.GetBestSellerProducts();
            ViewBag.otherSlide        = _homeServices.GetOtherSlide();
            ViewBag.contentList       = _homeServices.GetHomeContent();
            ViewBag.bannerHome        = _homeServices.GetBannerHome();
            if (seo != null)
            {
                ViewBag.MetaTitle       = seo.MetaTitle ?? string.Empty;
                ViewBag.MetaDescription = seo.MetaDescription ?? string.Empty;
                ViewBag.MetaKeyword     = seo.MetaKeyWord ?? string.Empty;
            }
            return(View());
        }