// GET: Student public ActionResult Index() { StudentVM studentVM = new StudentVM(); studentVM.Students = studentService.GetActiveStudent(); studentVM.ClassRooms = classRoomService.GetActiveRoom(); studentVM.PreRegistrations = preRegistrationService.GetActiveRegis(); return(View(studentVM)); }
// GET: PreRegistration public ActionResult Index() { //return View(preRegistrationService.GetActiveRegis()); PreRegistrationVM preRegistrationVM = new PreRegistrationVM(); preRegistrationVM.PeriodInformations = periodInformationService.GetActivePeriodInformation(); preRegistrationVM.PreRegistrations = preRegistrationService.GetActiveRegis(); preRegistrationVM.ClassRooms = classRoomService.GetActiveRoom(); return(View(preRegistrationVM)); }