// GET: Teacher/Subject public ActionResult Index(string id) { try { CourseDAO courseDao = new CourseDAO(); return(View(courseDao.GetCourseByID(id))); } catch { return(RedirectToAction("Error2", "Home", new { area = "" })); } }
public ActionResult GetTopicStudent(string course_id) { CommonFunc cFunc = new CommonFunc(); TopicDAO tDAO = new TopicDAO(); CourseDAO cDAO = new CourseDAO(); COURSE course = cDAO.GetCourseByID(course_id); List <TOPIC> topics = tDAO.GetAllTopicOfStudentCourse(cFunc.GetIdUserBySession(), course_id); CourseDetailsView model = new CourseDetailsView(); model.course = course; model.topics = topics; return(View(model)); }
public ActionResult Detail(string eventID, string courseID) { EventDAO eDao = new EventDAO(); EVENT ev = eDao.GetEventByID(eventID); CourseDAO courseDao = new CourseDAO(); COURSE course = courseDao.GetCourseByID(courseID); AssessmentDetailView detail = new AssessmentDetailView(); detail.eVent = ev; detail.course = course; return(View(detail)); }