public IActionResult Summary() { if (service.GetPartyIDs()?.Length == 0) { service.GeneratePlayers(); } PartySummaryVM partySummary = service.GetPartySummary(); return(View(nameof(Summary), partySummary)); }
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())); }