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