public void AdaugaSubject(Models.Subject.Subject subject) { var result = _subject.FirstOrDefault(d => d.Equals(subject)); if (result != null) { throw new DuplicateWaitObjectException(); } _subject.Add(subject); Console.WriteLine("O noua disciplina cu examen Distribuit a fost adaugata."); }
public Subject.Subject CreateSubjects(SubjectInformation subjectInfo) { var subject = new Subject.Subject(subjectInfo); return(subject); }
public void ActualizeazaSubject(Models.Subject.Subject subject) { Console.WriteLine("Modificarile au fost salvate."); }