public static bool Validate(string DBName, string table, string email)
        {
            string sql = "SELECT * FROM " + table + " WHERE UserEmail ='" + email + "'";

            return(SQLDataAccess.CheckUser(sql, DBName, email));
        }
Beispiel #2
0
        public static bool Validate(string DBName, string table, string name)
        {
            string sql = "SELECT * FROM " + table + " WHERE ProductName ='" + name + "'";

            return(SQLDataAccess.CheckUser(sql, DBName, name));
        }