public IActionResult ChangeCourseStatus(int id, string UserEmail, [FromBody] EnrolledCourse enrolledCourse)
 {
     if (ModelState.IsValid && id == enrolledCourse.Id)
     {
         bool result = repository.ChangeCourseStatus(enrolledCourse, UserEmail);
         if (result)
         {
             return(Created("UpdatedCourse", enrolledCourse.Id));
         }
     }
     return(BadRequest(ModelState));
 }