示例#1
0
        public async Task <ActionResult <Course> > GetCourse(int id)
        {
            var course = await _coursesService.FindAsync(id);

            if (course == null)
            {
                return(NotFound());
            }

            return(course);
        }