Example #1
0
 public List <Game> GetTopMostPopularGames(int top)
 {
     return(Games
            .OrderByDescending(g => GameSummaries.Where(gs => gs.GameId == g.Id && gs.CatalogId == 2).Count())
            .Take(top)
            .ToList());
 }
Example #2
0
 public IQueryable <GameSummary> GetGameSummaries(string userId)
 {
     return(GameSummaries
            .Where(gs => gs.UserId.Equals(userId)));
 }