Beispiel #1
0
        public bool GivePermitToCandidateToLogin(DAL.DAO.CandidateLogin aCandidateLogin)
        {
            LoginGateway aLoginGateway = new LoginGateway();

            aLoginGateway.ConfirmConnection();
            CandidateLogin bCandidateLogin = new CandidateLogin();

            bCandidateLogin = aLoginGateway.CheckCandidateLoginInfo(aCandidateLogin.CandidateName, aCandidateLogin.CandidatePassword);
            if (bCandidateLogin.CandidateName == aCandidateLogin.CandidateName && bCandidateLogin.CandidatePassword == aCandidateLogin.CandidatePassword)
            {
                return(true);
            }
            return(false);
            //bool permitMessage = aLoginGateway.CheckCandidateLoginInfo(aCandidateLogin);
            //return permitMessage;
        }