public pesquisaModel pesquisaPessoaDAL(int pesquisa) { try { quizeprofdall = new ConexaoDAL(); return(quizeprofdall.pesquisarEmailfuncDAL(pesquisa)); } catch (Exception erro) { throw erro; } }
public void mostrarprof() { try { ConexaoDAL conexao = new ConexaoDAL(); tabela_prof.DataSource = conexao.listar_prof(); } catch (Exception erro) { MessageBox.Show("Erro" + erro); } }