private List<ExportLecture> convertToExportFormat(List<TimetableField> lectures) { var res = new List<ExportLecture>(); if (lectures != null) { foreach (var lecture in lectures) { res.Add(new ExportLecture(lecture)); } } return res; }