예제 #1
0
        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);
        }
예제 #2
0
        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);
        }
예제 #3
0
        public ModeloCadastrarNaPalestra CarregaModeloCPalestra(int Codigo)
        {
            DALCadastroNaPalestra DALCPales = new DALCadastroNaPalestra(conexao);

            return(DALCPales.CarregaModeloCPalestra(Codigo));
        }
예제 #4
0
        public DataTable Localizar(String valor)
        {
            DALCadastroNaPalestra DALCPales = new DALCadastroNaPalestra(conexao);

            return(DALCPales.Localizar(valor));
        }
예제 #5
0
        public void Excluir(int codigo)
        {
            DALCadastroNaPalestra DALCPales = new DALCadastroNaPalestra(conexao);

            DALCPales.Excluir(codigo);
        }