Пример #1
0
        // GET: Courses/Details/5
        public ActionResult Details(int id)
        {
            var course = _coursesrepositories.GetCoursesById(id);

            if (course == null)
            {
                return(NotFound());
            }

            return(View(course));
        }
Пример #2
0
        public ActionResult IndexCanto(int TeacherId)
        {
            var t1 = coursesRepo.GetCoursesById(TeacherId);

            if (t1 == null)
            {
                return(NotFound());
            }

            return(View(t1));
        }
Пример #3
0
        public IEnumerable <CourseDTODetail> GetCoursesById(int id)
        {
            var coursesById = _repo.GetCoursesById(id);

            return(coursesById);
        }