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