示例#1
0
        // GET: Instructor/CourseContents/Edit/5
        public async Task <ActionResult> Edit(int?contentId, int?courseId)
        {
            if (contentId == null || courseId == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            CourseContent courseContent = await GetCourseContent(contentId, courseId);

            if (courseContent == null)
            {
                return(HttpNotFound());
            }
            return(View(await courseContent.Convert(db)));
        }