Ejemplo n.º 1
0
        public List <Comment> topComments(int top)
        {
            List <Comment> commentList      = inlog.getAllComments();
            List <Comment> commentTussenRes = commentList.OrderBy(o => o.aantalStemmen).ToList();
            List <Comment> commentReturn    = new List <Comment>();

            for (int i = 0; i < top; i++)
            {
                commentReturn.Add(commentTussenRes[i]);
            }
            return(commentReturn);
        }