public ShoppingCartDto CreateShoppingCart(int clientId)
        {
            var client = _clientRepo.SingleOrDefault(x => x.Id == clientId);

            var shoppingCart = _cartRepo.Create(
                new ShoppingCart
            {
                Client   = client,
                Products = new List <Product>()
            });

            return(ShoppingCartDto.ToDto(shoppingCart));
        }
        public ShoppingCartDto GetShoppingCart(int shoppingCartId)
        {
            var cart = _cartRepo.SingleOrDefault(x => x.Id == shoppingCartId);

            return(ShoppingCartDto.ToDto(cart));
        }