Beispiel #1
0
        public async Task <ProductCatalogListVm> Handle(GetProductCatalogListQuery request, CancellationToken cancellationToken)
        {
            var productCatalogDtos = await _productCatalogRepository.GetProductCatalogs().ProjectTo <ProductCatalogDto>(_mapper.ConfigurationProvider).ToListAsync();

            var vm = new ProductCatalogListVm
            {
                ProductCatalogs = productCatalogDtos
            };

            return(vm);
        }