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

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