// GET: Courses/Details/5 public ActionResult Details(int id) { var course = _coursesrepositories.GetCoursesById(id); if (course == null) { return(NotFound()); } return(View(course)); }
public ActionResult IndexCanto(int TeacherId) { var t1 = coursesRepo.GetCoursesById(TeacherId); if (t1 == null) { return(NotFound()); } return(View(t1)); }
public IEnumerable <CourseDTODetail> GetCoursesById(int id) { var coursesById = _repo.GetCoursesById(id); return(coursesById); }