public async Task <SearchResult <FieldMetadata> > Handle(GetMetadataList request, CancellationToken cancellationToken) { if (request == null) { throw new ArgumentNullException(nameof(request)); } return(await _repository.Search(request, cancellationToken)); }
public async Task <SearchResult <FieldMetadata> > List(GetMetadataList request) { return(await _mediator.Send(request)); }