Example #1
0
 public StudentEducationVM(IEducationRepo_DbContext educationRepo, Student student)
 {
     this.Student = student;
     //Selectlist houdt geselecteerde waarde bij.(EducationId)
     this.ListEducation = new SelectList(educationRepo.GetAllEducationsAsync().Result, "Id", "Name", student.EducationId);
 }
Example #2
0
 public TeacherEducationsVM(IEducationRepo_DbContext educationRepo, Teacher teacher, IEnumerable <Education> SelectedEducations)
 {
     Teacher = teacher;
     this.SelectedEducations = SelectedEducations;
     this.ListEducations     = new MultiSelectList(educationRepo.GetAllEducationsAsync().Result, "Education.Id", "Education.Name", SelectedEducations);
 }
Example #3
0
 public StudentController(IStudentRepo studentRepo, IEducationRepo_DbContext educationRepo)
 {
     this.studentRepo   = studentRepo;
     this.educationRepo = educationRepo;
 }
Example #4
0
 public TeacherController(ITeacherRepo teacherRepo, IEducationRepo_DbContext educationRepo)
 {
     _teacherRepo       = teacherRepo;
     this.educationRepo = educationRepo;
 }
 public EducationController(IEducationRepo_DbContext educationRepo_DbContext)
 {
     this.EducationRepo = educationRepo_DbContext;
 }