示例#1
0
        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));
            }
        }
示例#2
0
        public ActionResult Index(bool noLayout = false)
        {
            if (D2Cache == null || D2Cache.CacheExpired)
            {
                D2Cache = new VendorsModel()
                {
                    XurInTower  = XurManager.InTower(2),
                    XurSales    = XurManager.GetD2CurrentItems(),
                    XurLocation = XurManager.GetD2CurrentLocation(),

                    ExpiryTime = DateTime.Now.AddMinutes(30),
                    StartTime  = DateTime.Now
                };
            }

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