Ejemplo n.º 1
0
        /// <summary>
        /// Getting all Home Carousel component asigned in Sitecore with the Background CSS (eg:explore)
        /// </summary>
        /// <returns>Home Carousel content Slides details</returns>
        public IHomepage_Carousels HomePageCarousels()
        {
            IMvcContext         mvcContext         = _mvcContext();
            IHomepage_Carousels homepage_Carousels = mvcContext.GetDataSourceItem <IHomepage_Carousels>();

            return(homepage_Carousels ?? _homepage_Carousels);
        }
Ejemplo n.º 2
0
 public BannerRepository(Func <IMvcContext> mvcContext, IParallax parallax, IImageText imageText, IHomepage_Carousels homepage_Carousels, IHero hero)
 {
     _imageText          = imageText;
     _parallax           = parallax;
     _mvcContext         = mvcContext;
     _homepage_Carousels = homepage_Carousels;
     _hero = hero;
 }
Ejemplo n.º 3
0
        /// <summary>
        /// Getting all related component asigned in Sitecore with the Background CSS (eg:explore)
        /// </summary>
        /// <returns>Relatedcontent list</returns>
        public ActionResult HomePageCarousels()
        {
            IHomepage_Carousels homepage_CarouselList = _bannerRepository.HomePageCarousels();

            return(View($"{ViewPath}Banner/HomePageCarousel/_HomePageCarousel.cshtml", homepage_CarouselList));
        }