Esempio n. 1
0
 private static IEnumerable <string> EntriesThatHasPlayerInTeam(int playerId, IEnumerable <GameweekEntry> gameweekEntries, IEnumerable <User> users)
 {
     return(gameweekEntries == null?
            Enumerable.Empty <string>() :
                gameweekEntries.Where(x => x.Picks.Any(pick => pick.PlayerId == playerId)).Select(x => SlackHandleHelper.GetSlackHandleOrFallback(users, x.EntryName)));
 }
Esempio n. 2
0
 private static IEnumerable <string> EntriesThatTransferredPlayerInThisGameweek(int playerId, IEnumerable <TransfersByGameWeek.Transfer> transfersForCurrentGameweek, IEnumerable <User> users)
 {
     return(transfersForCurrentGameweek == null?
            Enumerable.Empty <string>() :
                transfersForCurrentGameweek.Where(x => x.PlayerTransferredIn == playerId).Select(x => SlackHandleHelper.GetSlackHandleOrFallback(users, x.EntryName)));
 }