protected override async Task <ProductDal> HandleCore(UpdateProductCommand command) { var oldProduct = await _productSearcher.GetAsync(command.Product.product_id); await _productRepository.UpdateAsync(oldProduct, command.Product); return(await _productSearcher.GetAsync(command.Product.product_id)); }
public async Task <ProductDal> GetAsync(int productId) { return(await _productSearcher.GetAsync(productId)); }