public ICollection <WebFleetOrder> GetOrders(DateRangePattern dateRangePattern)
        {
            var result = new List <WebFleetOrder>();

            var webService = new WebFleet.OrdersService.ordersClient();

            var ordersParameters = new OrderReportParameters
            {
                dateRange = new DateRange()
                {
                    rangePatternSpecified = true,
                    rangePattern          = dateRangePattern,
                    fromSpecified         = false,
                    toSpecified           = false,
                }
            };

            var response = webService.showOrderReport(GetAuthenticationParameters(), GetGeneralParameters(),
                                                      ordersParameters);

            if (HandleResult(response))
            {
                result.AddRange(from ReportedOrderData order in response.results select _mappingService.Map(order));
            }

            return(result);
        }
        public WebFleetOrder GetOrder(string orderNumber)
        {
            var result           = new List <WebFleetOrder>();
            var webService       = new WebFleet.OrdersService.ordersClient();
            var ordersParameters = new OrderReportParameters()
            {
                orderNo = orderNumber
            };
            var response = webService.showOrderReport(GetAuthenticationParameters(), GetGeneralParameters(),
                                                      ordersParameters);

            if (HandleResult(response))
            {
                result.AddRange(from ReportedOrderData order in response.results select _mappingService.Map(order));
            }

            return(result.Count > 0 ? result.FirstOrDefault() : null);
        }