예제 #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));
        }
예제 #2
0
 public Label FindLabel(long labelId)
 {
     return(LabelDao.Find(labelId));
 }