public void Put(int id, [FromBody] CourseResult[] courseResults)
        {
            var enrollments = courseResults
                              .Select(c => new Enrollment {
                CourseID = c.CourseId, StudentID = id, Grade = c.Grade
            })
                              .ToArray();

            studentRepository.AddCourseResult(enrollments);
        }