public List <DTOComment> FindComments(long eventId, int startIndex, int count) { List <DTOComment> result = new List <DTOComment>(); if (!SportEventDao.Exists(eventId)) { throw new EventNotExistsException(eventId); } List <Comment> listComment = CommentDao.FindCommentsByEventIdOrderByDate(eventId, startIndex, count); UserProfile userOwner; foreach (var comment in listComment) { userOwner = UserProfileDao.Find(comment.ownerId); result.Add(new DTOComment(comment.commentId, userOwner.loginName, comment.eventId, comment.comment_description, comment.publishDate, tagsToListOfStrings(comment.Tags.ToList()))); } return(result); }