public ActionResult MailMerge() { List <Class> classes = ClassesDB.GetClasses(); ViewBag.Classes = classes; return(View()); }
public ActionResult ClassRating() { List <Class> classes = ClassesDB.GetClasses(); ViewBag.Classes = classes; return(View()); }
public ActionResult ViewPupils() { List <PupilWithClass> p = PupilsDB.GetPupilsWithClass(); List <Class> classes = ClassesDB.GetClasses(); ViewBag.Classes = classes; return(View(p)); }
// Добавление нового ученика. public ActionResult AddPupilForm() { List <Class> classesList = ClassesDB.GetClasses(); SelectList classesSL = new SelectList(classesList, "Class_ID", "Class_Name"); ViewBag.Classes = classesSL; return(View()); }
public ActionResult AddLessonForm() { List <Class> classes = ClassesDB.GetClasses(); ViewBag.Classes = classes; List <TeacherShortInf> teachers = TeachersDB.GetTeachersShortInf(); ViewBag.Teachers = teachers; List <Subject> subjects = SubjectsDB.GetSubjects(); ViewBag.Subjects = subjects; return(View()); }
public ActionResult EditLesson(int lessonID) { LessonFullInf lesson = LessonsDB.GetLessonFullInf(lessonID); List <Class> classes = ClassesDB.GetClasses(); ViewBag.Classes = classes; List <TeacherShortInf> teachers = TeachersDB.GetTeachersShortInf(); ViewBag.Teachers = teachers; List <Subject> subjects = SubjectsDB.GetSubjects(); ViewBag.Subjects = subjects; return(View(lesson)); }
public ActionResult ViewLessons() { List <DateTime> dates = LessonsDB.GetLessonsDates(); List <List <LessonFullInf> > lessons = new List <List <LessonFullInf> >(); int lessonsCount = LessonsDB.GetLessonsCount(); for (int i = 0; i < dates.Count(); i++) { lessons.Add(LessonsDB.GetLessonsInDate(dates[i])); } List <Class> classes = ClassesDB.GetClasses(); List <Subject> subjects = SubjectsDB.GetSubjects(); ViewBag.Subjects = subjects; ViewBag.Classes = classes; ViewBag.Dates = dates; ViewBag.Lessons = lessons; return(View()); }
//Récupère les classes public static List <Classes> GetClasses(int IdProf) { return(ClassesDB.GetClasses(IdProf)); }
public ActionResult ChooseClass() { List <Class> classes = ClassesDB.GetClasses(); return(View(classes)); }
public ActionResult GetStatistics() { List <Class> classes = ClassesDB.GetClasses(); return(View(classes)); }