public SalesOrderHeader NewOrder() { var order = OrderContributedActions.CreateNewOrder(Root, true); Container.Persist(ref order); return(order); }
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); }