private Dictionary <Report, int> FillThirdDictionary() { ThirdDictionary = new Dictionary <Report, int>(); foreach (var v in project.GetReports(project.GetProject(this.studentNumber, projectId).FirstOrDefault().id, this.studentNumber)) { ThirdDictionary.Add(v, (int)v.grade); } return(ThirdDictionary); }