Example #1
0
        public async Task <Unit> Handle(UpdateProductCatalogCommand request, CancellationToken cancellationToken)
        {
            await _productCatalogRepository.UpdateProductCatalogAsync(request, cancellationToken);

            await _mediator.Publish(new ProductCatalogUpdated()
            {
                ProductCatalogId = request.Id
            });

            return(Unit.Value);
        }