Exemplo n.º 1
0
 public Boolean LoginUserName(string username)
 {
     LoginData login = new LoginData();
     if (login.CheckUserName(login.SearchUserName(username)))
     {
         return true;
     }
     else
     {
         return false;
     }
 }
Exemplo n.º 2
0
 public Boolean LoginPassword(string password, string username)
 {
     LoginData login = new LoginData();
     if (login.CheckPassword(login.SearchPassword(username), password) == true)
     {
         return true;
     }
     else
     {
         return false;
     }
 }