// GET: Courses/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }

            Cours cours = coursesRepo.GetById(id.Value);

            if (cours == null)
            {
                return(HttpNotFound());
            }

            var courseVM = CourseMap.CourseToCourseVM(cours);

            return(View(courseVM));
        }
        // GET: Courses/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }

            Cours cours = coursesRepo.GetById(id.Value);

            if (cours == null)
            {
                return(HttpNotFound());
            }

            var courseVM = CourseMap.CourseToCourseVM(cours);

            courseVM.TeacherIdSelectList = SelectListHelper.CreateSelectListProp(SelectListHelper.PopulateTeacherSelectList(), courseVM.TeacherId);

            return(View(courseVM));
        }