Example #1
0
        public bool GivePermitToLogin(DAL.DAO.AdminLogin aAdminLogin)
        {
            LoginGateway aLoginGateway = new LoginGateway();

            aLoginGateway.ConfirmConnection();

            AdminLogin bAdminLogin = aLoginGateway.CheckLoginInfoTest(aAdminLogin.Username, aAdminLogin.Password);

            if (bAdminLogin.Username == aAdminLogin.Username && bAdminLogin.Password == aAdminLogin.Password)
            {
                return(true);
            }
            return(false);

            //bool permitMessage = aLoginGateway.CheckLoginInfo(aAdminLogin);
            //return permitMessage;
        }