public AssignmentGrade FindAssignmentGrade(string assign) { AssignmentGrade foundGrade = null; foreach (AssignmentGrade g in this.AssignmentGrades) { if (g.Assignment.Assign == assign) { foundGrade = g; break; } } return(foundGrade); }
public AssignmentGrade FindAssignmentGrade(int id) { AssignmentGrade foundAssignmentGrade = null; foreach (AssignmentGrade a in this.AssignmentGrades) { if (a.Enrollment.Student.Id == id) { foundAssignmentGrade = a; break; } } return(foundAssignmentGrade); }
public AssignmentGrade FindAssignmentGrade(int studentId) { AssignmentGrade foundGrade = null; foreach (AssignmentGrade g in this.AssignmentGrades) { if (g.Enrollment.Student.Id == studentId) { foundGrade = g; break; } } return(foundGrade); }
public AssignmentGrade FindAssignmentGrade(int personId) { AssignmentGrade foundAssignmentGrade = null; foreach (AssignmentGrade ag in this.AssignmentGrades) { if (ag.Enrollment.Student.Id == personId) { foundAssignmentGrade = ag; break; } } return(foundAssignmentGrade); }
public AssignmentGrade FindAssignmentGrade(int Id) { //return this.Courses.Find(g.Enrollment.Id == enrollmentId); AssignmentGrade foundAssignmentGrade = null; foreach (AssignmentGrade g in this.AssignmentGrades) { if (g.Id == Id) { foundAssignmentGrade = g; break; } } return(foundAssignmentGrade); }