示例#1
0
        public IHttpActionResult GetCourses()
        {
            var data = _courseAppService.GetCourses();

            if (data != null)
            {
                return(Ok(data));
            }
            else
            {
                return(NotFound());
            }
        }
示例#2
0
        public ActionResult EditCourse(int id)
        {
            var dto = _courseAppService.GetCourses(id);

            return(View(dto));
        }