public void AddProduct(ProductRecord record, ulong price) { SetProductPrice(record.ProductId, price); AddProduct(record); } // noexcept
} // noexcept public void AddProduct(ProductRecord record, ulong price) { _storage.AddProduct(record, price); } // noexcept
} // ProductPriceNotSetException public ulong BuyProduct(ProductRecord record) { _storage.BuyProduct(record, out var price); return(price); } // ProductAmountNotSetException, ProductAmountNotEnoughException
} // noexcept public void AddProduct(ProductRecord record) { _storage.AddProduct(record); } // noexcept