コード例 #1
0
ファイル: PostAdapter.cs プロジェクト: lqt1912/CoStudy.WebAPI
        public static ReplyComment FromRequest(ReplyCommentRequest request, string UserId)
        {
            return(new ReplyComment()
            {
                AuthorId = UserId,

                ParentId = request.ParentCommentId,
                Content = request.Content,
                Status = ItemStatus.Active,
                CreatedDate = DateTime.Now,
                ModifiedDate = DateTime.Now
            });
        }
コード例 #2
0
        public async Task <IActionResult> Addreply(ReplyCommentRequest request)
        {
            var data = await commentService.ReplyComment(request);

            return(Ok(new ApiOkResponse(data)));
        }