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; }