Exemple #1
0
 public void Create(ModelRepository repo, ModelRepository oldState)
 {
     _post.CreateInstructors(repo.Instructors, oldState.Instructors);
     _post.CreateStudents(repo.Students, oldState.Students);
     _post.CreateCourses(repo.Courses, oldState.Courses);
     _post.CreateEnrollments(repo.Enrollments, oldState.Enrollments);
 }
Exemple #2
0
 public void UpdateRepository(ModelRepository repo)
 {
     UpdateCourses(repo.Courses);
     UpdateEnrollments(repo.Enrollments);
 }
Exemple #3
0
 public void Update(ModelRepository repo) => _post.UpdateRepository(repo);