public async Task <IReadOnlyList <AppleReadModel> > Get([FromQuery] GetAllApples query) { return(await _queryProcessor.QueryAsync(query)); }
public async Task <IReadOnlyList <AppleReadModel> > HandleAsync(GetAllApples query, CancellationToken cancellationToken = default) { return(await _repo.QueryListAsync(filter : null, 0, 50, cancellationToken)); }