Esempio n. 1
0
        //only order some of the shopping cart item...
        public Order CreateOrder(List <CartItem> CartItems, Guid CustomerId, Guid AddressId)
        {
            Cart cart = new Cart();

            cart.Items = CartItems;
            ServiceProvider.Cart(this.Context).CalculatePromotion(cart);
            return(CreateOrder(cart, CustomerId, AddressId));
        }
Esempio n. 2
0
 public KCart(RenderContext context)
 {
     this.context     = context;
     this.cartservice = ServiceProvider.Cart(this.context);
 }