public ActionResult CourseFilter() { var viewModel = new SearchViewModel { Class = new Class(), Course = new Course(), Departments = db.Departments.ToList(), GFRs = db.GFRs.ToList(), GEPs = db.GEPs.ToList(), Semesters = db.Semesters.ToList() }; return View(viewModel); }
// GET: /Search/ public ActionResult Index() { var viewModel = new SearchViewModel { Class = new Class(), Course = new Course(), Departments = db.Departments.ToList(), GFRs = db.GFRs.ToList(), GEPs = db.GEPs.ToList(), Semesters = db.Semesters.ToList(), CurrentSemester = db.Current_Semester.First().semester_id }; return View(viewModel); }