public IHttpActionResult GetCourses() { var data = _courseAppService.GetCourses(); if (data != null) { return(Ok(data)); } else { return(NotFound()); } }
public ActionResult EditCourse(int id) { var dto = _courseAppService.GetCourses(id); return(View(dto)); }