예제 #1
0
        public async Task <bool> ModifyProductAsync(ProductEntity modified)
        {
            await _productsRepository.ModifyProductAsync(modified);

            return(await _productsRepository.SaveAsync());
        }
 public TotalPriceCalculator(ProductEntity entity)
 {
     _entity = entity;
 }
예제 #3
0
        public async Task <bool> AddNewProductAsync([NotNull] ProductEntity product)
        {
            await _productsRepository.AddNewProductAsync(product);

            return(await _productsRepository.SaveAsync());
        }