public IHttpActionResult GetCourse(int courseId) { var data = _courseAppService.GetCourseById(courseId); if (data != null) { return(Ok(data)); } else { return(NotFound()); } }
public async Task <IActionResult> GetCourse(long id) { var result = await _courseAppService.GetCourseById(id); return(Ok(result)); }
public async Task <IActionResult> GetCourseById(int Id) { var output = await _courseAppService.GetCourseById(Id); return(View("CourseEdit", output)); }