public IActionResult InsertCourses([FromBody] Course course) { courseDAO = new CourseDAO(_configuration); int resultToReturn = courseDAO.Insert(course); return(Ok(resultToReturn)); }
public void CourseInsert(Course c) { CourseDAO cDAO = new CourseDAO(); cDAO.Insert(c); }
//[Authorize(Roles = "Tutor")] public Course Post(Course course) { return(CourseDAO.Insert(course)); }