Esempio n. 1
0
        public GetOrdersQueryResult MapToGetOrdersQueryResult(GetOrdersTransactionResult items)
        {
            var result = new GetOrdersQueryResult();

            foreach (var item in items)
            {
                var data = MaotpGetOrdersQueryResultItem(item);
                result.Add(data);
            }
            result.PagingInfo = MapToPagingInfo(items.PagingInfo);
            return(result);
        }
Esempio n. 2
0
        public OrderList Map(GetOrdersQueryResult list)
        {
            var result = new OrderList();

            foreach (var item in list)
            {
                result.Add(Map(item));
            }
            result.PagingInfo = Map(list.PagingInfo);

            return(result);
        }