public void Add(Boletim b) { try { context.Boletins.Add(b); context.SaveChanges(); } catch { MessageBox.Show("Ocorreu algum erro, tente novamente"); } }
public void Add(Professor p) { try { context.Professores.Add(p); context.SaveChanges(); } catch { MessageBox.Show("Ocorreu algum erro, tente novamente"); } }
public void Add(Funcionario f) { try { context.Funcionarios.Add(f); context.SaveChanges(); } catch { MessageBox.Show("Ocorreu algum erro, tente novamente"); } }
public void Add(Aluno a) { try { context.Alunos.Add(a); context.SaveChanges(); } catch { MessageBox.Show("Ocorreu algum erro, tente novamente"); } }
public void Add(Materia m) { try { context.Materias.Add(m); context.SaveChanges(); } catch { MessageBox.Show("Ocorreu algum erro, tente novamente"); } }
public void Add(Turma t) { try { CriaExcel(t.Horario); context.Turmas.Add(t); context.SaveChanges(); } catch { MessageBox.Show("Ocorreu algum erro, tente novamente"); } }