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