コード例 #1
0
 public IActionResult Post([FromBody] Course course)
 {
     if (course.ValidCourse())
     {
         _dbstore.AddCourse(Course.CourseMapping(course));
         return(Ok());
     }
     else
     {
         return(BadRequest());
     }
 }