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); }
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); }
public StudentController(IStudentRepo studentRepo, IEducationRepo_DbContext educationRepo) { this.studentRepo = studentRepo; this.educationRepo = educationRepo; }
public TeacherController(ITeacherRepo teacherRepo, IEducationRepo_DbContext educationRepo) { _teacherRepo = teacherRepo; this.educationRepo = educationRepo; }
public EducationController(IEducationRepo_DbContext educationRepo_DbContext) { this.EducationRepo = educationRepo_DbContext; }