public async Task <IEnumerable <CatalogItem> > Handle(GetAllCatalogItemsQuery query, CancellationToken cancellationToken)
            {
                var entityList = await _context.CatalogItems.ToListAsync(cancellationToken);

                return(entityList?.AsReadOnly());
            }
 public async Task <IEnumerable <CatalogItem> > Handle(GetAllCatalogItemsQuery request, CancellationToken cancellationToken)
 {
     return(await _repository.GetAllCatalogItemsAsync());
 }