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