Beispiel #1
0
        public async Task EnrollToCourse(Enrollment enrollment, CancellationToken token)
        {
            var dataEnrollment = EnrollmentConverter.ApiToEntityModel(enrollment);

            dataEnrollment.EnrollmentStatus     = (int)EnrollmentStatus.Enrolled;
            dataEnrollment.LastStatusChangeDate = DateTime.Now;

            await _context.InsertNewEnrollment(dataEnrollment, token);

            return;
        }