public IReadOnlyCollection <IDiscipline> GetDisciplines()
 {
     try
     {
         disciplines.Clear();
         foreach (var disciplineInfo in disciplineRepository.GetDisciplines())
         {
             disciplines.Add(new Discipline(disciplineInfo));
         }
         return(new ReadOnlyCollection <IDiscipline>(disciplines));
     }
     catch (DatabaseException ex)
     {
         throw new ConnectionException(ex.Message);
     }
 }
Пример #2
0
 private IEnumerable <IEntityDTO> GetDisciplines(int facultyID)
 => _disRep.GetDisciplines(facultyID);