public async Task <IActionResult> AgendarVeiculo(AgendamentoInputModel agendamentoInput, CancellationToken ctx) { var result = await _veiculoApplication.AgendarAluguelVeiculo(agendamentoInput, ctx); if (result.Valid) { return(Created($"/veiculos/{agendamentoInput.Placa}/agendamentos", result.Object)); } return(UnprocessableEntity(result.Notifications)); }