Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- */
- return _dbContext.GamePlatforms
- .Include(x => x.Game)
- .GroupBy(x => x.GameId)
- .Select(g =>
- new GroupedGamePlatform()
- {
- GameId = g.Key, Platforms = g.Select(x => x.Platform).ToList()
- })
- .ToList();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement