public void Excluir(clsSetor setor) { DadosSistema dados = new DadosSistema(); string[] parametros = { "@OPERACAO", "@NUMERO" }; try { dados.Executar("SETOR_S_D", parametros, "E", setor.numero); } catch (Exception ex) { throw new Exception(ex.Message); } }
public void Alterar(clsSetor setor) { DadosSistema dados = new DadosSistema(); string[] parametros = { "@OPERACAO", "@NUMERO", "@NOME" }; try { dados.Executar("SETOR_I_A", parametros, "A", setor.numero, setor.nome); } catch (Exception ex) { throw new Exception(ex.Message); } }