예제 #1
0
 public SiteSection(Site site)
 {
     AssessTrackDataRepository repo = new AssessTrackDataRepository();
     Site = site;
     foreach (CourseTerm ct in repo.GetUserCourseTerms(site))
     {
         CourseTermSections.Add(new CourseTermSection(ct));
     }
 }
예제 #2
0
 public SiteSection(AssessTrackDataRepository repo, Site site)
 {
     _repo = repo;
     Site = site;
     foreach (CourseTerm ct in _repo.GetUserCourseTerms(site))
     {
         CourseTermSections.Add(new CourseTermSection(_repo, ct));
     }
 }