public List <CommentDto> GetCommentsForIdea(int ideaId, string userId) { var comments = _ideationManager.GetCommentsForIdea(ideaId).ToList(); var dtos = _mapper.Map <List <CommentDto> >(comments); foreach (var comment in dtos) { var vote = _userManager.GetVoteForComment(comment.CommentId, userId); if (vote != null) { comment.UserVoteValue = vote.Value; } } return(dtos); }