public virtual async Task <PagedResult <SalesOrder> > GetOrderHistory(QueryResultSettings queryResultSettings) { ManagerFactory factory = Utilities.GetManagerFactory(this.EcommerceContext); ICustomerManager customerManager = factory.GetManager <ICustomerManager>(); PagedResult <SalesOrder> salesOrders = await customerManager.GetOrderHistory(string.Empty, queryResultSettings); salesOrders = await DataAugmenter.GetAugmentedSalesOrders(this.EcommerceContext, salesOrders); return(salesOrders); }
public async Task <PagedResult <SalesOrder> > GetSalesOrder(SalesOrderSearchCriteria salesOrderSearchCriteria, QueryResultSettings queryResultSettings) { if (salesOrderSearchCriteria == null) { throw new ArgumentNullException(nameof(salesOrderSearchCriteria)); } if (queryResultSettings == null) { throw new ArgumentNullException(nameof(queryResultSettings)); } ManagerFactory managerFactory = Utilities.GetManagerFactory(this.EcommerceContext); ISalesOrderManager salesOrderManager = managerFactory.GetManager <ISalesOrderManager>(); PagedResult <SalesOrder> salesOrders = await salesOrderManager.Search(salesOrderSearchCriteria, queryResultSettings); salesOrders = await DataAugmenter.GetAugmentedSalesOrders(this.EcommerceContext, salesOrders); return(salesOrders); }