Beispiel #1
0
        // GET: CourseInfo/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            CourseInfoModel courseInfoModel = _iCourse.GetCourseDetails(id);

            if (courseInfoModel == null)
            {
                return(HttpNotFound());
            }
            return(View(courseInfoModel));
        }