public ActionResult Schedule() { GPFSession session = (GPFSession)TempData["GPFSession"]; if (session == null) { return(RedirectToAction("Options", "GPF")); } session.Degree = _degreeService.GetDegreeById(session.Degree.Id); session.Concentration = session.Degree.Concentrations.Find(x => x.Id == session.Concentration.Id); GPFSchedule schedule = _gpfService.GetSessionSchedule(session); GPFViewModel model = new GPFViewModel() { GPFSession = session, GPFSchedule = schedule }; return(View(model)); }
public ActionResult FillConcentrationList(int id) { Degree degree = _degreeService.GetDegreeById(id); return(Json(degree.Concentrations, JsonRequestBehavior.AllowGet)); }