public async Task <bool> ModifyProductAsync(ProductEntity modified) { await _productsRepository.ModifyProductAsync(modified); return(await _productsRepository.SaveAsync()); }
public TotalPriceCalculator(ProductEntity entity) { _entity = entity; }
public async Task <bool> AddNewProductAsync([NotNull] ProductEntity product) { await _productsRepository.AddNewProductAsync(product); return(await _productsRepository.SaveAsync()); }