public bool RemoveDisciplina(DisciplinaStudent disc) { if (FindDisciplina(disc)) { disciplina.Remove(disc); return true; } else return false; }
public bool FindDisciplina(DisciplinaStudent disc) { foreach (var d in disciplina) { if (d.Equals(disc)) { return true; } } return false; }
public bool FindDisciplina(DisciplinaStudent disc) { foreach (var d in disciplina) { if (d.Equals(disc)) { return(true); } } return(false); }
public bool AddDisciplina(DisciplinaStudent disc) { if (FindDisciplina(disc)) { return false; } else { disciplina.Add(disc); return true; } }
public bool RemoveDisciplina(DisciplinaStudent disc) { if (FindDisciplina(disc)) { disciplina.Remove(disc); return(true); } else { return(false); } }
public bool AddDisciplina(DisciplinaStudent disc) { if (FindDisciplina(disc)) { return(false); } else { disciplina.Add(disc); return(true); } }