public ActionResult Index(CourseRelativeViewModel model) { model.courseGroupViewModel.courseGroupList = searchCourseGroup(model.courseGroupViewModel); model.courseViewModel.CoursePagedList = searchCourse(model.courseViewModel); model.teacherViewModel.teacherPagedList = searchTeacher(model.teacherViewModel); model.studentViewModel.studentPagedList = searchStudent(model.studentViewModel); ViewBag.groupList = DropDownListHelper.getAppraiseGroupList(true); ViewBag.courseClassList = DropDownListHelper.getCourseClassList(true); ViewBag.memberTypeList = DropDownListHelper.getMemberTypeList(true); return(View(model)); }
public ActionResult Index() { CourseRelativeViewModel model = new CourseRelativeViewModel(); return(Index(model)); }