Example #1
0
        public static List <propScoreBoard> Get()
        {
            var listScoreBoard = new List <propScoreBoard>();
            var listStudent    = Student.Get();

            if (listStudent == null)
            {
                return(null);
            }
            listStudent.ForEach(student =>
            {
                var onlineTest = OnlineTest.Get(student.id);
                var scoreboard = new propScoreBoard(student, onlineTest);
                listScoreBoard.Add(scoreboard);
            });

            return(listScoreBoard);
        }
Example #2
0
        public static List <propScoreBoard> Get(int groupId)
        {
            var listScoreBoard  = new List <propScoreBoard>();
            var listGroupMember = GroupMember.Get(groupId);

            if (listGroupMember == null)
            {
                return(null);
            }
            listGroupMember.ForEach(student =>
            {
                var onlineTest = OnlineTest.Get(student.id);
                var scoreboard = new propScoreBoard(student, onlineTest);
                listScoreBoard.Add(scoreboard);
            });

            return(listScoreBoard);
        }