        private void UpdateLearningPeriods(ICollection<Models.LearningPeriod> updatedLearningPeriods, ICollection<Models.LearningPeriod> existingLearningPeriods)
        {
            foreach (var learningPeriod in updatedLearningPeriods)
            {
                var existingLearningPeriod = existingLearningPeriods
                    .SingleOrDefault(p => p.LearnerId == learningPeriod.LearnerId &&
                    p.StartDate == learningPeriod.StartDate);

                UpdateLearningPeriod(learningPeriod, existingLearningPeriod);
            }
        }
