public async Task <List <VeiculoDto> > Lista([FromQuery] ConsultarVeiculosQuery query)
 {
     return(await _mediator.Send(query));
 }
 public Task <List <VeiculoDto> > Handle(ConsultarVeiculosQuery request, CancellationToken cancellationToken)
 {
     return(Task.FromResult(_repository.BuscarTodosVeiculos()));
 }