コード例 #1
0
        public SalesOrderHeader NewOrder()
        {
            var order = OrderContributedActions.CreateNewOrder(Root, true);

            Container.Persist(ref order);
            return(order);
        }
コード例 #2
0
        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);
        }