public async Task <CommentDTO> LikeComment(string id) { var exit = await _commentRepository.Get(id); if (exit != null) { var comment = await _commentRepository.AddCommentLike(id); var dto = Mapper.Map <Comment, CommentDTO>(comment); return(dto); } else { throw new BusinessException(ResultCode.BADREQUEST, "评论不存在"); } }