Exemple #1
0
        public IActionResult AddTeam(int leagueId)
        {
            bool leageExists = leagueService.Exists(leagueId);

            if (!leageExists)
            {
                return(NotFound());
            }

            return(View(new TeamFormViewModel()
            {
                LeagueIds = new List <int>()
                {
                    leagueId
                },
                Leagues = GetSelectListLeagues()
            }));
        }