Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- return this._mediaBugEntityDB.LotteryOffers
- .Where(lo => lo.Id == lotteryOfferId)
- .SelectMany(lo => lo.LotteryDrawDates)
- .Select(ldd => ldd.Lottery)
- .GroupBy(s => new { s.Name, s.CreatedBy, s.ModifiedOn})
- .Select(g => new
- { g.Key.Name,
- g.Key.CreatedBy,
- g.Key.ModifiedOn,
- TotalDrawDates = g.Count()
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement