Agathas.Storefront.Shopping.Model.Baskets.Basket.remove_product_with_id_of C# (CSharp) Метод

remove_product_with_id_of() публичный Метод

public remove_product_with_id_of ( Agathas.Storefront.Shopping.Model.Baskets.ProductSnapshot product, IBasketPricingService basket_pricing_service ) : void
product Agathas.Storefront.Shopping.Model.Baskets.ProductSnapshot
basket_pricing_service IBasketPricingService
Результат void
        public void remove_product_with_id_of(ProductSnapshot product, IBasketPricingService basket_pricing_service)
        {
            if (basket_contains_an_item_for(product))
            {
                _items.Remove(get_item_for(product));

                recalculate_basket_totals(basket_pricing_service);
            }
        }