public IActionResult CourseRequestUpdate(int id, [FromBody] bool isApproved) { var result = repository.CourseRequestUpdate(id, isApproved); if (result) { return(Ok("Course request approved")); } return(Ok("Course request rejected, User will be notified")); }