Esempio n. 1
0
 public IEnumerable<MatchForecastResult> TournamentMatches(TournamentViewModel tournament, UserViewModel user)
 {
     var matches = Users [user];
     return matches.GroupBy (m => m.Match.Tournament, (key, g) => new { Key = key, List = g.ToList () }).First (p => p.Key.Equals(tournament)).List;
 }
Esempio n. 2
0
 public IEnumerable<TournamentViewModel> GetTournaments(UserViewModel user)
 {
     var collection = Users [user];
     return collection.Select (item => item.Match.Tournament).Distinct ();
 }