public IActionResult Post([FromBody] Course course)
 {
     if (ModelState.IsValid)
     {
         bool result = repository.AddCourses(course);
         if (result)
         {
             return(Created("AddCourse", course));
         }
         return(StatusCode(StatusCodes.Status500InternalServerError));
     }
     return(BadRequest(ModelState));
 }