Exemplo n.º 1
0
        // Редактирование информации про ученика.
        public ActionResult EditPupilInformation(int action)
        {
            PupilFullInformation p           = PupilsDB.GetPupilsFullInformation(action);
            List <Class>         classesList = ClassesDB.GetClassesWithoutCurr(p.Class);
            SelectList           classesSL   = new SelectList(classesList, "Class_ID", "Class_Name");

            ViewBag.Classes = classesSL;
            return(View(p));
        }