public ActionResult <IEnumerable <Course> > GetAllCourse()
 {
     if (!ModelState.IsValid)
     {
         return(BadRequest(ModelState));
     }
     else
     {
         var allcourses = _COURSEDAL.GetAllCourse().ToList();
         return(Ok(allcourses));
     }
 }