public async Task <IActionResult> GetRessourcesFromOrderId(int id)
        {
            var query  = new QueryRessourcesFromOrderID(id);
            var result = await _mediator.Send(query);

            return(Ok(result));
        }
Ejemplo n.º 2
0
 public async Task <List <DTORessource> > Handle(QueryRessourcesFromOrderID request, CancellationToken cancellationToken)
 {
     return(await storeQuery.GetRessourcesFromOrderID(request.Id));
 }