public ActionResult List() { SectionPlacementViewModel model = new SectionPlacementViewModel(); model.Programs = context.Programs.ToList(); model.Levels = context.Levels.ToList(); return(View("Index", model)); }
public ActionResult List(SectionPlacementViewModel model) { model.Programs = context.Programs.ToList(); model.Levels = context.Levels.ToList(); IEnumerable <Student> students = context.Students.Where(m => m.LevelId == model.LevelId).Where(m => m.ProgramId == model.ProgramId).Where(m => m.Year == model.Year).ToList(); model.Students = students; return(View("Index", model)); }
public ActionResult AssignSection(SectionPlacementViewModel model) { return(View("Index", model)); }