/// <summary> /// Zapíše studentovi předmět /// </summary> /// <param name="student"></param> /// <param name="predmet"></param> public void AddPredmet(Student student, Predmet predmet) { Studenti[student.Id].ZapsanePredmety.Add(predmet.Id, predmet); Databaze.Predmety[predmet.Id].Studujici.Add(student.Id, student); }
/// <summary> /// Odebere studentovi zapsaný předmět /// </summary> /// <param name="student"></param> /// <param name="predmet"></param> public void RemovePredmet(Student student, Predmet predmet) { Studenti[student.Id].ZapsanePredmety.Remove(predmet.Id); Databaze.Predmety[predmet.Id].Studujici.Remove(student.Id); }
/// <summary> /// Vymaže záznam studenta /// </summary> /// <param name="student"></param> public void Delete(Student student) { Studenti.Remove(student.Id); }