コード例 #1
0
        private ApplicationListCollection GetGroupedResult(
            IEnumerable <Order> groups, ApplicationListItem[] applications,
            long total, long?clientId = null, long?senderId = null, long?forwarderId = null, long?carrierId = null)
        {
            var orderTypes = groups.Select(x => x.OrderType).ToArray();

            var applicationGroups = _grouper.Group(applications, orderTypes, clientId, senderId, forwarderId, carrierId);

            OrderBottomGroupByClient(applicationGroups);

            return(new ApplicationListCollection
            {
                Total = total,
                Groups = applicationGroups,
            });
        }