Esempio n. 1
0
        public IHttpActionResult GetCourse(int courseId)
        {
            var data = _courseAppService.GetCourseById(courseId);


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

            return(Ok(result));
        }
Esempio n. 3
0
        public async Task <IActionResult> GetCourseById(int Id)
        {
            var output = await _courseAppService.GetCourseById(Id);

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