예제 #1
0
        public IEnumerable <LessonCommentDTO> GetCommentsByLessonId(int lessonId)
        {
            var comments       = _lessonRepository.GetComments(lessonId);
            var lessonComments = comments.ToList().ConvertAll(l => new LessonCommentDTO(l));

            return(lessonComments);
        }