Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- db.StockItemTransactions
- .Where(x => x.StockItemID == id)
- .GroupBy(x => x.CustomerID)
- .OrderByDescending(x => x.Sum(z => z.Quantity * -1))
- .Take(5)
- .ToList();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement