Esempio n. 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);
 }
Esempio n. 2
0
 public void UpdateRepository(ModelRepository repo)
 {
     UpdateCourses(repo.Courses);
     UpdateEnrollments(repo.Enrollments);
 }
Esempio n. 3
0
 public void Update(ModelRepository repo) => _post.UpdateRepository(repo);