示例#1
0
        public async Task <ApiResult <CommentPageResponse> > AddCommentAsync([FromBody] CommentRequest request)
        {
            var userId = default(long?);
            var user   = GetUser();

            if (user != null)
            {
                userId = user.UserId;
            }
            return(await _commentService.ArticleCommentAsync(request, userId));
        }