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 <IReadOnlyList <FantasyCriticUser> > GetActivePlayersForLeagueYear(League league, int year) { return(_fantasyCriticRepo.GetActivePlayersForLeagueYear(league, year)); }