Example #1
0
        public ActionResult Destiny1Index(bool noLayout = false)
        {
            if (Destiny1Cache == null || Destiny1Cache.CacheExpired)
            {
                var nf             = NfManager.GetD1NightFall();
                var weeklyBounties = BountyManager.GetWeeklyBounties("Zavala");

                Destiny1Cache = new NightfallDataModel()
                {
                    ThisNightfall        = nf,
                    ExpiryTime           = DateTime.Now.AddHours(1),
                    StartTime            = DateTime.Now,
                    WeeklyStrikeBounties = weeklyBounties
                };
            }

            if (noLayout)
            {
                return(View("Destiny1/PartialIndex", Destiny1Cache));
            }
            else
            {
                ViewBag.HtmlTagOverride = @"data-redirect=""/#nightfall""";
                return(View("Destiny1/Index", Destiny1Cache));
            }
        }