示例#1
0
 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);
 }
示例#2
0
 // 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);
 }