Пример #1
0
        public async Task <IActionResult> GetMatchPartial()
        {
            Match match = _appState.GetActiveMatch();

            if (match != null)
            {
                return(PartialView("MatchPartial", match));
            }
            else
            {
                List <Stats> stats = await _appState.GetStatsAsync();

                ViewData["showMessage"] = true;
                return(PartialView("StatsPartial", stats));
            }
        }
 public async Task <List <Stats> > GetStats()
 {
     return(await _appState.GetStatsAsync());
 }