Exemple #1
0
        public async Task AddNewLeagueYear(League league, int year, LeagueOptions options, LeagueYear mostRecentLeagueYear)
        {
            await _fantasyCriticRepo.AddNewLeagueYear(league, year, options);

            var mostRecentActivePlayers = await _fantasyCriticRepo.GetActivePlayersForLeagueYear(league, mostRecentLeagueYear.Year);

            await _fantasyCriticRepo.SetPlayersActive(league, year, mostRecentActivePlayers);
        }
 public Task AddNewLeagueYear(League league, int year, LeagueOptions options)
 {
     return(_fantasyCriticRepo.AddNewLeagueYear(league, year, options));
 }