예제 #1
0
        /// <summary>
        /// 商品添加购物车
        /// </summary>
        /// <param name="productId">商品id</param>
        /// <param name="SkuId">SkuIdid</param>
        /// <param name="MemberId">会员id</param>
        /// <returns></returns>
        public async Task <CartItemDto> AddToCartItem(Guid productId, Guid skuId, Guid memberId)
        {
            CartItem cartItem = await _cartItemRepository.AddToCartItem(productId, skuId, memberId);

            return(ObjectMapper.Map <CartItem, CartItemDto>(cartItem));
        }