public async Task <IActionResult> GetRessourcesFromOrderId(int id) { var query = new QueryRessourcesFromOrderID(id); var result = await _mediator.Send(query); return(Ok(result)); }
public async Task <List <DTORessource> > Handle(QueryRessourcesFromOrderID request, CancellationToken cancellationToken) { return(await storeQuery.GetRessourcesFromOrderID(request.Id)); }