internal int GetScore(WeekPossibility wp)
 {
     IEnumerable<string> weekWinners = wp.GameWinners.Select(x => x.TeamAbbrev);
     return GamePicks.Where(x => weekWinners.Contains(x.TeamAbbrev)).Sum(x => x.Points);
 }
Beispiel #2
0
        internal int GetScore(WeekPossibility wp)
        {
            IEnumerable <string> weekWinners = wp.GameWinners.Select(x => x.TeamAbbrev);

            return(GamePicks.Where(x => weekWinners.Contains(x.TeamAbbrev)).Sum(x => x.Points));
        }