Exemple #1
0
        public void RemoveRange(IEnumerable <Enrollment> enrollments)
        {
            if (enrollments.Count() > 0)
            {
                foreach (var enrollment in enrollments.ToList())
                {
                    var evaluations = _evaluationRepository.Find(ev => ev.EnrollmentId == enrollment.Id);

                    _evaluationRepository.RemoveRange(evaluations);

                    _enrollmentRepository.Remove(enrollment);
                }
            }
        }