Exemple #1
0
        static public User FindUser(string id)
        {
            UserConnector uC    = new UserConnector();
            User          login = uC.SelectUser(id);

            return(login);
        }
Exemple #2
0
        static public bool Login(string id, string password)
        {
            UserConnector uC        = new UserConnector();
            User          loginuser = uC.SelectUser(id);

            if (loginuser.password == password)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }