PersonDAO repository = new PersonDAO();
return repository.getPersonByLogin(email);
}
public Person getByLoginAndPassword(String email, String password) {
PersonDAO repository = new PersonDAO();
return repository.getPersonByLoginAndPassword(email, password);
}