Example #1
0
 public async Task <IEnumerable <Process> > ExecuteAsync(GetProcessQuery command, IEnumerable <Process> previousResult)
 {
     return(await _cosmosStore
            .Query()
            .Where(p => p.Status == command.Status)
            .ToListAsync());
 }
 public async Task <ActionResult <GetProcessQueryResponse> > Get(string id)
 {
     try
     {
         var query = new GetProcessQuery {
             Id = id
         };
         return(await this.mediator.Send(query));
     }
     catch (Exception ex)
     {
         return(this.BadRequest(ex.Message));
     }
 }