コード例 #1
0
        public IHttpActionResult GetCourse(int courseId)
        {
            var data = _courseAppService.GetCourseById(courseId);


            if (data != null)
            {
                return(Ok(data));
            }
            else
            {
                return(NotFound());
            }
        }
コード例 #2
0
        public async Task <IActionResult> GetCourse(long id)
        {
            var result = await _courseAppService.GetCourseById(id);

            return(Ok(result));
        }
コード例 #3
0
        public async Task <IActionResult> GetCourseById(int Id)
        {
            var output = await _courseAppService.GetCourseById(Id);

            return(View("CourseEdit", output));
        }