Exemple #1
0
        public IActionResult InsertCourses([FromBody] Course course)
        {
            courseDAO = new CourseDAO(_configuration);
            int resultToReturn = courseDAO.Insert(course);

            return(Ok(resultToReturn));
        }
Exemple #2
0
        public void CourseInsert(Course c)
        {
            CourseDAO cDAO = new CourseDAO();

            cDAO.Insert(c);
        }
Exemple #3
0
 //[Authorize(Roles = "Tutor")]
 public Course Post(Course course)
 {
     return(CourseDAO.Insert(course));
 }