I've got a list of student/assignment pairs coming in to my application via flat file into a List object and I'd like to validate those assignment names against a list of assignments I have to see which student has done what assignment (if any).
So - I have a list of students, a list of student/assignment pairs, and a list of assignments.
I want to create output like the following:
1. (Heading) -- Student Name -- Assignent One -- Assignment TWo 2. (Detail) -- John Smith -- <complete> -- <complete>
How can I accomplish this?
What I have so far: // HACCStudentBlogs stores the list of students in a dictionary I've been appending to the key's value with every found blog (crude, I know) //
Dictionary<string, string> studentBlogs = new Dictionary<string, string>();
foreach (JObject o in root)
{
createDate = (string)o["createdDate"];
studentName = (string)d[(string)o["contributorName"]];
submittedStudents.Add(studentName);
title=(string)o["title"];
if (HACCstudentBlogs.ContainsKey(studentName))
{
HACCstudentBlogs[studentName] += "\t" + title.ToUpper();
}
else
{
}
}