public ActionResult SelectComment(int commentId, int postId, int customerId)
        {
            var post = _postService.GetPostById(postId);

            post.Solve = true;
            _postService.UpdatePost(post);
            var comment = _commentService.GetPostComment(commentId);

            comment.Selected = true;
            _commentService.UpdateComment(comment);
            return(AbpJson("success"));
        }
示例#2
0
 public async Task <IActionResult> GetPostComment(Guid id)
 {
     return(Ok(await _commentForPostService.GetPostComment(id)));
 }