Beispiel #1
0
        public ActionResult ReAdmit()
        {
            // use in development only
            List <TermOption> model = dao.GetAllTermOptions();

            // uncomment for production
            //DateTime fromDate=DateTime.Today.AddDays(-30);
            //DateTime toDate=DateTime.Today.AddMonths(5);
            //List<TermOption> model = dao.GetTermOptions(fromDate, toDate);
            return(View(model));
        }
Beispiel #2
0
        public ActionResult CreateProgramRegistration(int StudentId)
        {
            ProgramRegistration model = new ProgramRegistration();

            model.StudentId = StudentId;

            // Uncomment for production
            //DateTime today = DateTime.Today;
            //DateTime fromDate = today.AddDays(-30);
            //DateTime toDate = today.AddMonths(5);
            //model.TermOptions = dao.GetTermOptions(fromDate, toDate);

            model.TermOptions    = dao.GetAllTermOptions();
            model.ProgramOptions = dao.GetProgramOptions();

            Session["TermOptions"]    = model.TermOptions;
            Session["ProgramOptions"] = model.ProgramOptions;

            return(View(model));
        }