*/
public boolean isAdmin(String login, String password) throws DAOException {
boolean success = false;
AbstractDAOFactory daoFactory = Controller.getDAOFactory();
AdminDAO adminDAO = daoFactory.getAdminDAO();
success = adminDAO.existAdmin(login, password);
return success;
}
/**
* Returns true if the user with given login and password is Customer.