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); }
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); }