protected override async Task OnInitializedAsync() { Id = Id ?? "1"; Student = await StudentService.GetStudent(int.Parse(Id)); Students = (await StudentService.GetAllStudents()).ToList(); Courses = (await CourseService.GetAllCourses()).ToList(); Enrollments = (await EnrollmentService.GetAllEnrollments()).ToList(); }