예제 #1
0
 public BusinessCartContract.Cart DeleteItemsFromCart(string cartId, BusinessCartContract.Items deleteItems)
 {
     ProxyCartContract.Items   proxyItems   = Mapper.Map <BusinessCartContract.Items, ProxyCartContract.Items>(deleteItems);
     ProxyCartContract.Cart    cart         = this.cartService.DeleteItemsFromCart(cartId, proxyItems);
     BusinessCartContract.Cart businessCart = this.ConvertToBusinessCart(cart);
     return(businessCart);
 }
예제 #2
0
 public BusinessCartContract.Cart AddItemsToCart(string cartId, BusinessCartContract.Items addItems)
 {
     ProxyCartContract.Items   proxyItems   = Mapper.Map <BusinessCartContract.Items, ProxyCartContract.Items>(addItems);
     ProxyCartContract.Cart    cart         = this.cartService.AddItemsToCart(cartId, proxyItems);
     BusinessCartContract.Cart businessCart = this.ConvertToBusinessCart(cart);
     return(businessCart);
 }
예제 #3
0
 private ProxyCartContract.Cart ConvertToProxyCart(BusinessCartContract.Cart businessCart)
 {
     ProxyCartContract.Cart proxyCart = Mapper.Map <BusinessCartContract.Cart, ProxyCartContract.Cart>(businessCart);
     return(proxyCart);
 }
예제 #4
0
 private BusinessCartContract.Cart ConvertToBusinessCart(ProxyCartContract.Cart proxyCart)
 {
     BusinessCartContract.Cart businessCart = Mapper.Map <ProxyCartContract.Cart, BusinessCartContract.Cart>(proxyCart);
     return(businessCart);
 }
예제 #5
0
 public BusinessCartContract.Cart AbandonCart(string cartId)
 {
     ProxyCartContract.Cart    proxyCart = this.cartService.AbandonActiveCart(cartId);
     BusinessCartContract.Cart cart      = this.ConvertToBusinessCart(proxyCart);
     return(cart);
 }
예제 #6
0
 public BusinessCartContract.Cart CheckOutCart(string cartId)
 {
     ProxyCartContract.Cart    proxyCart = this.cartService.CheckOutCart(cartId);
     BusinessCartContract.Cart cart      = this.ConvertToBusinessCart(proxyCart);
     return(cart);
 }
예제 #7
0
 public BusinessCartContract.Cart OpenCart()
 {
     ProxyCartContract.Cart    cart         = this.cartService.OpenCart();
     BusinessCartContract.Cart businessCart = this.ConvertToBusinessCart(cart);
     return(businessCart);
 }