public void Incluir(ModeloCadastrarNaPalestra modelo) { if (modelo.CPalestraCodAluno <= 0) { throw new Exception("O nome da Participante é obrigatório."); } if (modelo.CPalestraCodPalestra <= 0) { throw new Exception("A Palestra é obrigatória."); } DALCadastroNaPalestra DALCPales = new DALCadastroNaPalestra(conexao); DALCPales.Incluir(modelo); }
public void Alterar(ModeloCadastrarNaPalestra modelo) { if (modelo.CPalestraCod <= 0) { throw new Exception("Nenhum registro Selecionado."); } if (modelo.CPalestraCodAluno <= 0) { throw new Exception("O nome da Participante é obrigatório."); } if (modelo.CPalestraCodPalestra <= 0) { throw new Exception("A Palestra é obrigatória."); } DALCadastroNaPalestra DALCPales = new DALCadastroNaPalestra(conexao); DALCPales.Alterar(modelo); }
public ModeloCadastrarNaPalestra CarregaModeloCPalestra(int Codigo) { DALCadastroNaPalestra DALCPales = new DALCadastroNaPalestra(conexao); return(DALCPales.CarregaModeloCPalestra(Codigo)); }
public DataTable Localizar(String valor) { DALCadastroNaPalestra DALCPales = new DALCadastroNaPalestra(conexao); return(DALCPales.Localizar(valor)); }
public void Excluir(int codigo) { DALCadastroNaPalestra DALCPales = new DALCadastroNaPalestra(conexao); DALCPales.Excluir(codigo); }