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)); }
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)); }