예제 #1
0
        public async Task <Cart> CreateCartAsync(ShoppingCart dtoCart)
        {
            await _cartClient.CreateCartAsync(dtoCart);

            dtoCart = await _cartClient.GetCartAsync(dtoCart.StoreId, dtoCart.CustomerId);

            return(dtoCart != null?dtoCart.AsWebModel() : null);
        }
예제 #2
0
        public async Task <Cart> CreateCartAsync(Cart cart)
        {
            await _cartClient.CreateCartAsync(cart.AsServiceModel());

            var dtoCart = await _cartClient.GetCartAsync(cart.StoreId, cart.CustomerId);

            return(dtoCart != null?dtoCart.AsWebModel() : null);
        }