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 }); }
public async Task <IActionResult> Addreply(ReplyCommentRequest request) { var data = await commentService.ReplyComment(request); return(Ok(new ApiOkResponse(data))); }