Beispiel #1
0
        public Guid AddProductToShop(Shop shop, Guid userGuid, Product product, double price, int quantity)
        {
            var newShopProduct = new ShopProduct(product, price, quantity);

            shop.AddProductToShop(newShopProduct);
            _unitOfWork.ShopRepository.Update(shop);
            return(newShopProduct.Guid);
        }