public async Task DeleteStudentCourseAsync([FromQuery] AddDeleteStudentCourseDto studentCourseDto)
 {
     try
     {
         await _courseService.DeleteStudentCourseAsync(studentCourseDto);
     }
     catch (Exception e)
     {
         throw new ApplicationException(e.Message);
     }
 }
 public async Task DeleteStudentCourseAsync(AddDeleteStudentCourseDto addStudentCourseDto)
 {
     await _studentCourseRepository.DeleteAsync(sc => sc.CourseId == addStudentCourseDto.CourseId && sc.StudentId == addStudentCourseDto.StudentId);
 }
 public async Task AddStudentCourseAsync(AddDeleteStudentCourseDto addStudentCourseDto)
 {
     await _studentCourseRepository.CreateAsync(new StudentCourse { CourseId = addStudentCourseDto.CourseId, StudentId = addStudentCourseDto.StudentId });
 }