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