Exemplo n.º 1
0
        /// <summary>
        /// Gets all leagues in the DB
        /// </summary>
        /// <returns></returns>
        public async Task <IList <League> > GetLeagues()
        {
            await _repo.SeedSports();

            await _repo.SeedLeague();

            await _repo.SeedTeams();

            return(await _repo.Leagues.ToListAsync());
        }