Exemple #1
0
        public LabelDto Find(long labelId)
        {
            Label label = LabelDao.Find(labelId);
            ICollection <CommentDto> commentsDto = new List <CommentDto>();

            foreach (Comment c in label.Comments)
            {
                commentsDto.Add(new CommentDto(c, c.Event.eventId));
            }
            return(new LabelDto(label.labelId, label.name, label.commentsNum, commentsDto));
        }
Exemple #2
0
 public Label FindLabel(long labelId)
 {
     return(LabelDao.Find(labelId));
 }