Esempio n. 1
0
        public void AddToCart(Guid productId, int quantity)
        {
            if (!nomenclatureService.DoesProductExist(productId))
            {
                throw new CartException($"Product {productId} doesn't exist");
            }

            checkoutService.AddToCart(this, productId, quantity);
        }