Beispiel #1
0
        public IActionResult Index(IList <string> errors)
        {
            UpdatePlayersFromApi();
            var model = new VMIndex
            {
                WaitingList = _squadService.QueryWaitingPlayers(_context),
                Squads      = _context.Squads.Include(s => s.Players).ToList(),
                SquadsExist = _context.Squads.Any(),
                Errors      = errors
            };

            return(View(model));
        }