Exemple #1
0
        public PartialViewResult GetStudentProgramRegistration(int StudentId)
        {
            ViewBag.studentId  = StudentId;
            ViewBag.hasProgram = false;

            int           studentProgramId, currentSemester;
            ProgramOption programOption;

            if (dao.GetStudentProgramOption(StudentId, out studentProgramId, out currentSemester, out programOption))
            {
                ViewBag.hasProgram = true;

                ViewBag.studentProgramId = studentProgramId;
                ViewBag.currentSemester  = currentSemester;
                ViewBag.programOption    = programOption;

                ViewBag.registrationOptions = dao.GetValidRegistrations(studentProgramId);
            }

            return(PartialView("StudentProgramRegistration"));
        }