public IActionResult GetById(int id) { courseDAO = new CourseDAO(_configuration); return(Ok(courseDAO.Get(id))); }
//[Authorize] public Course Get(int id) { return(CourseDAO.Get(id)); }
public IActionResult GetCourses() { courseDAO = new CourseDAO(_configuration); return(Ok(courseDAO.Get())); }