Example #1
0
        public bool isValid()
        {
            clsSqlServer obj = new clsSqlServer();

            if (obj.getUser(userName, password).Tables[0].Rows.Count == 0)
            {
                return(false);
            }
            else
            {
                return(true);
            }
        }
Example #2
0
        public bool isValid()
        {
            clsSqlServer obj = new clsSqlServer();

            // if we have not found username, and password
            // if this dataset return by the getUser function is not having any rows
            if (obj.getUser(userName, passWord).Tables[0].Rows.Count == 0)
            {
                return(false);
            }
            else
            {
                return(true);
            }
        }