public ActionResult Submit(string event_id) { EventDAO eDao = new EventDAO(); EVENT ev = eDao.GetEventByID(event_id); return(View(ev)); }
public ActionResult StudentDetail(string studentID, string eventID) { UserDAO userDao = new UserDAO(); C_USER student = userDao.GetStudentsByIDWithSubmit(studentID, eventID); EventDAO eventDao = new EventDAO(); EVENT ev = eventDao.GetEventByID(eventID); AssessmentStudentDetailView model = new AssessmentStudentDetailView(); model.student = student; model.eVent = ev; 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)); }