コード例 #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);
        }
コード例 #2
0
 public Task <IReadOnlyList <FantasyCriticUser> > GetActivePlayersForLeagueYear(League league, int year)
 {
     return(_fantasyCriticRepo.GetActivePlayersForLeagueYear(league, year));
 }