Beispiel #1
0
        private OrderInfo CreateOrder()
        {
            // Associate cart with this user
            CartController cartController = new CartController();
            cartController.UpdateCart(CurrentCart.GetInfo(PortalId).CartID, UserId);

            // Create order (copies cart to create order)
            OrderController orderController = new OrderController();
            OrderInfo orderInfo = orderController.CreateOrder(CurrentCart.GetInfo(PortalId).CartID);
            if (orderInfo != null)
            {
                SetOrderIdCookie(orderInfo.OrderID);
            }

            return orderInfo;
        }