public async Task <List <PendingRequestsProjection> > GetPendingRequests() { var query = new GetPendingRequestsProjectionQuery(); var result = await _queryProcessor.Process(query); return(result); }
public Task <List <PendingRequestsProjection> > Handle(GetPendingRequestsProjectionQuery query) { return(_context.PendingRequestsProjection.ToListAsync()); }