private void ParseTrainingRawDatas(string html) { var trainingIds = new FunbeatCalendarParser().ParseTrainingIdsFromCalendarSource(html); var newTrainingRawDatas = trainingIds .Where(id => RawTrainings.All(existing => existing.Id != id)) .Select(id => new RawTraining { Id = id }) .ToList(); newTrainingRawDatas.ForEach(RawTrainings.Add); }
private void ParseDayNotes(string html) { var dayNotes = new FunbeatCalendarParser().ParseDayNotesFromCalendarSource(html); var newDayNotes = dayNotes.Where(dn => !DayNotes.Contains(dn)).ToList(); newDayNotes.ForEach(DayNotes.Add); }