public bool checkPass(int userID, string pass) { string password = Common.Utility.Encrypt(pass); DataTable dt = user.checkPass(userID, password); if (dt.Rows.Count > 0) { return(true); } else { return(false); } }