示例#1
0
        public IActionResult Summary()
        {
            if (service.GetPartyIDs()?.Length == 0)
            {
                service.GeneratePlayers();
            }

            PartySummaryVM partySummary = service.GetPartySummary();

            return(View(nameof(Summary), partySummary));
        }
示例#2
0
        public IActionResult Main()
        {
            if (service.GetPartyIDs()?.Length == 0)
            {
                service.GeneratePlayers();
            }
            string res = HttpContext.Session.GetString(SelectedEnvironment);

            if (string.IsNullOrEmpty(res))
            {
                HttpContext.Session.SetString(SelectedEnvironment, "Forest");
            }

            return(View(service.GetGameMainVM()));
        }