public async Task <ProductCatalogVm> Handle(GetProductCatalogQuery request, CancellationToken cancellationToken) { var productCatalog = await _productCatalogRepository.GetProductCatalogByIdAsync(request); if (productCatalog == null) { throw new NotFoundException(nameof(ProductCatalog), request.Id); } return(_mapper.Map <ProductCatalogVm>(productCatalog)); }