示例#1
0
        public ActionResult List()
        {
            SectionPlacementViewModel model = new SectionPlacementViewModel();

            model.Programs = context.Programs.ToList();
            model.Levels   = context.Levels.ToList();
            return(View("Index", model));
        }
示例#2
0
        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));
        }
示例#3
0
 public ActionResult AssignSection(SectionPlacementViewModel model)
 {
     return(View("Index", model));
 }