コード例 #1
0
        public AssignmentGrade FindAssignmentGrade(string assign)
        {
            AssignmentGrade foundGrade = null;

            foreach (AssignmentGrade g in this.AssignmentGrades)
            {
                if (g.Assignment.Assign == assign)
                {
                    foundGrade = g;
                    break;
                }
            }
            return(foundGrade);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        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);
        }
コード例 #4
0
        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);
        }
コード例 #5
0
        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);
        }