public int codigoEstacionamento() { EstacionamentoDAO estacionamento = new EstacionamentoDAO(); int cod = 0; for (int i = 0; i < estacionamento.ObterTodos().Count; i++) { cod = estacionamento.ObterTodos()[i].CodEstacionamento; } return cod; }