public GradesSection GetGradesSection(ClassWP c) { string fileName = Files.GRADE_FILE(_localAccountId, c.Identifier); GradesSection section = GradesSections.FirstOrDefault(i => i.FileName.Equals(fileName)); if (section == null) { section = new GradesSection(this, fileName, c); GradesSections.Add(section); } return(section); }
public GradesSection(AccountSection accountSection, string fileName, ClassWP c) : base(fileName, accountSection) { _accountSection = accountSection; _class = c; }