public SalesOrderHeader NewOrder() { var order = OrderContributedActions.CreateNewOrder(Root, true); Container.Persist(ref order); return(order); }
//Action to demonstrate use of Auto-Complete that returns a single object public static IQueryable <SalesOrderHeader> OrdersForCustomer( [DescribedAs("Enter the Account Number (AW + 8 digits) & select the customer")] Customer customer, IQueryable <SalesOrderHeader> headers ) { return(OrderContributedActions.RecentOrders(customer, headers)); }
public static SalesOrderHeader CheckOut(IFunctionalContainer container) { var cust = GetCustomerForUser(); var order = OrderContributedActions.CreateNewOrder(cust, true, container); order.AddItemsFromCart = true; return(order); }
public static SalesOrderHeader CheckOut( IQueryable <BusinessEntityAddress> addresses, IQueryable <SalesOrderHeader> headers) { var cust = GetCustomerForUser(); var order = OrderContributedActions.CreateNewOrder(cust, true, addresses, headers); order.AddItemsFromCart = true; return(order); }
public IList <SalesOrderHeader> RecentOrders(IFunctionalContainer container) { return(OrderContributedActions.RecentOrders(Root, container).ToList()); }