private void FillGrades(Project p) { project = DatabaseFactory.getInstance().getDAOProject(); Grades = new Dictionary <BaroAspect, Dictionary <ProjectReportDate, Dictionary <Report, int> > >(); foreach (var v in project.GetBaroAspect(project.GetProject(this.studentNumber, projectId).FirstOrDefault().id)) { Grades.Add(v, FillSecondDictionary()); } }