コード例 #1
0
        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.");
        }
コード例 #2
0
        public Subject.Subject CreateSubjects(SubjectInformation subjectInfo)
        {
            var subject = new Subject.Subject(subjectInfo);

            return(subject);
        }
コード例 #3
0
 public void ActualizeazaSubject(Models.Subject.Subject subject)
 {
     Console.WriteLine("Modificarile au fost salvate.");
 }