SyntaxFix
Write A Post
Hire A Developer
Questions
var groupedCustomerList = CustomerList.GroupBy(u => u.GroupID) .Select(grp =>new { GroupID =grp.Key, CustomerList = grp.ToList()}) .ToList();