コード例 #1
0
        public async Task <ActionResult <Course> > PostCourse(CourseDto course)
        {
            var newCourse = await _coursesService.CreateAsync(course);

            return(CreatedAtAction("GetCourse", new { id = newCourse.Id }, newCourse));
        }