public static Order_V02 GetOrderDetail(string orderNumber) { Order_V02 order = null; var proxy = ServiceClientProvider.GetOrderServiceProxy(); try { using (new OperationContextScope(proxy.InnerChannel)) { var req = new GetOrderDetailRequest_V01(); req.OrderNumber = orderNumber; req.Locale = Thread.CurrentThread.CurrentCulture.Name; var response = proxy.GetOrderDetail(new GetOrderDetailRequest1(req)).GetOrderDetailResult as GetOrderDetailResponse_V01; if (response != null) { return(response.Order); } } } catch (Exception ex) { WebUtilities.LogServiceExceptionWithContext(ex, proxy); } finally { ServiceClientFactory.Dispose(proxy); } return(order); }
public DistributorOrderConfirmation GetEmailFromOrder_V02(Order_V02 order, MyHLShoppingCart cartInfo, string locale) { return(EmailHelper.GetEmailFromOrder_V02(order, cartInfo, locale)); }