public ActionResult OtherServices()
        {
            if (_OtherServicesGallery == null)
            {
                _OtherServicesGallery = new InstagramGallery(20, new string[] { OtherServicesTag });
            }

            if (_OtherServicesCover == null)
            {
                _OtherServicesCover = new InstagramGallery(1, new string[] { OtherServicesTag, CoverImageTag });
            }

            ViewBag.Gallery    = _OtherServicesGallery;
            ViewBag.CoverImage = _OtherServicesCover;

            return(View());
        }
        public ActionResult PhotoBooth()
        {
            if (_PhotoBoothGallery == null)
            {
                _PhotoBoothGallery = new InstagramGallery(50, new string[] { PhotoBoothTag });
            }

            if (_PhotoBoothCover == null)
            {
                _PhotoBoothCover = new InstagramGallery(1, new string[] { PhotoBoothTag, CoverImageTag });
            }

            ViewBag.Gallery    = _PhotoBoothGallery;
            ViewBag.CoverImage = _PhotoBoothCover;

            return(View());
        }
        public ActionResult PrivateParties()
        {
            if (_PrivatePartiesGallery == null)
            {
                _PrivatePartiesGallery = new InstagramGallery(10, new string[] { PrivatePartyTag });
            }

            if (_PrivatePartiesCover == null)
            {
                _PrivatePartiesCover = new InstagramGallery(1, new string[] { PrivatePartyTag, CoverImageTag });
            }

            ViewBag.Gallery    = _PrivatePartiesGallery;
            ViewBag.CoverImage = _PrivatePartiesCover;

            return(View());
        }
        public ActionResult Weddings()
        {
            if (_WeddingGallery == null)
            {
                _WeddingGallery = new InstagramGallery(20, new string[] { WeddingTag });
            }

            if (_WeddingCover == null)
            {
                _WeddingCover = new InstagramGallery(1, new string[] { WeddingTag, CoverImageTag });
            }

            ViewBag.Gallery    = _WeddingGallery;
            ViewBag.CoverImage = _WeddingCover; // if we want hardcoded, this needs to be removed

            return(View());
        }
        public ActionResult Index()
        {
            if (!_StaticUpdates.HasValue || DateTime.UtcNow < _StaticUpdates.Value)
            {
                _FacebookRatings          = null;
                _WeddingCoverImage        = null;
                _PhotoBoothCoverImage     = null;
                _PrivatePartiesCoverImage = null;
                _OtherServicesCoverImage  = null;
                _WeddingGallery           = null;
                _PhotoBoothGallery        = null;
                _PrivatePartiesGallery    = null;
                _OtherServicesGallery     = null;
                _StaticUpdates            = DateTime.UtcNow.AddHours(6);
            }

            if (_WeddingCoverImage == null)
            {
                var scrapedCovers = new InstagramGallery(1, ServicesController.WeddingTag, ServicesController.CoverImageTag);
                _WeddingCoverImage = scrapedCovers.MediaItems.Where(i => i.MediaType == MediaType.Image).OrderByDescending(i => i.CreateDate).FirstOrDefault();
            }

            if (_PhotoBoothCoverImage == null)
            {
                var scrapedCovers = new InstagramGallery(1, ServicesController.PhotoBoothTag, ServicesController.CoverImageTag);
                _PhotoBoothCoverImage = scrapedCovers.MediaItems.Where(i => i.MediaType == MediaType.Image).OrderByDescending(i => i.CreateDate).FirstOrDefault();
            }

            if (_PrivatePartiesCoverImage == null)
            {
                var scrapedCovers = new InstagramGallery(1, ServicesController.PrivatePartyTag, ServicesController.CoverImageTag);
                _PrivatePartiesCoverImage = scrapedCovers.MediaItems.Where(i => i.MediaType == MediaType.Image).OrderByDescending(i => i.CreateDate).FirstOrDefault();
            }

            if (_OtherServicesCoverImage == null)
            {
                var scrapedCovers = new InstagramGallery(1, ServicesController.OtherServicesTag, ServicesController.CoverImageTag);
                _OtherServicesCoverImage = scrapedCovers.MediaItems.Where(i => i.MediaType == MediaType.Image).OrderByDescending(i => i.CreateDate).FirstOrDefault();
            }

            if (_WeddingGallery == null)
            {
                _WeddingGallery = new InstagramGallery(10, ServicesController.WeddingTag);
                _WeddingGallery.ShowOnlyFirstLink = true;
            }
            if (_PhotoBoothGallery == null)
            {
                _PhotoBoothGallery = new InstagramGallery(10, ServicesController.PhotoBoothTag);
                _PhotoBoothGallery.ShowOnlyFirstLink = true;
            }
            if (_PrivatePartiesGallery == null)
            {
                _PrivatePartiesGallery = new InstagramGallery(10, ServicesController.PrivatePartyTag);
                _PrivatePartiesGallery.ShowOnlyFirstLink = true;
            }
            if (_OtherServicesGallery == null)
            {
                _OtherServicesGallery = new InstagramGallery(10, ServicesController.OtherServicesTag);
                _OtherServicesGallery.ShowOnlyFirstLink = true;
            }

            ViewBag.WeddingCoverImage        = _WeddingCoverImage;
            ViewBag.PhotoBoothCoverImage     = _PhotoBoothCoverImage;
            ViewBag.PrivatePartiesCoverImage = _PrivatePartiesCoverImage;
            ViewBag.OtherServicesCoverImage  = _OtherServicesCoverImage;

            ViewBag.WeddingGallery        = _WeddingGallery;
            ViewBag.PhotoBoothGallery     = _PhotoBoothGallery;
            ViewBag.PrivatePartiesGallery = _PrivatePartiesGallery;
            ViewBag.OtherServicesGallery  = _OtherServicesGallery;

            // facebook ratings
            if (_FacebookRatings == null)
            {
                _FacebookRatings = Scraped.FacebookRatings;
            }

            ViewBag.FacebookRatings = _FacebookRatings;

            return(View());
        }