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

            return(login);
        }
Example #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);
            }
        }
Example #3
0
        static public void AddUser(User adduser)
        {
            UserConnector uC = new UserConnector();

            uC.AddUser(adduser);
        }