public ActionResult Destiny1Index(bool noLayout = false) { if (D1Cache == null || D1Cache.CacheExpired) { D1Cache = new VendorContentModel() { HideSrl = true, XurInTower = XurManager.InTower(1), XurSales = XurManager.GetD1CurrentItems(), XurLocation = XurManager.GetD1CurrentLocation(), MaterialExchanges = VendorManager.GetMaterialExchange(), MaterialDetail = VendorManager.GetMaterialDetails(), TrialsDetails = TrialsManager.GetCurrentMap(), IronLordBounties = BountyManager.GetWeeklyBounties("Shiro"), IronLordArtifacts = BountyManager.GetWeeklyRewards("Tyra"), SrlBounties = BountyManager.GetBounties("Srl"), SrlRewards = BountyManager.GetRewards(new DateTime(2016, 12, 13), 1, "Srl"), ExpiryTime = DateTime.Now.AddMinutes(30), StartTime = DateTime.Now }; } if (noLayout) { return(View("Destiny1/PartialIndex", D1Cache)); } else { ViewBag.HtmlTagOverride = @"data-redirect=""/#vendors"""; return(View("Destiny1/Index", D1Cache)); } }