public Boolean Delete(String query) { SqlConnection Conexao = ConexaoBancoSQL.getConexao(); SqlCommand Commando = new SqlCommand(query, Conexao); try { Commando.ExecuteNonQuery(); return(true); } catch { return(false); } }
private SqlCommand TemplateMethod(String query) { SqlConnection Conexao = ConexaoBancoSQL.getConexao(); SqlCommand Commando = new SqlCommand(query, Conexao); try { Commando.ExecuteNonQuery(); return(Commando); } catch { return(Commando); } }