Exemplo n.º 1
0
        public async Task <IActionResult> Reply([FromBody] ReplyCommentModel model)
        {
            if (model == null)
            {
                return(this.InvalidRequest());
            }

            var result = await this.CommentService.DirectlyReply(model.ReplyTo, model.Content);

            if (result.Success)
            {
                return(this.Success());
            }
            else
            {
                return(this.Error(result.ErrorMessage));
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// 增加评论回复
 /// </summary>
 /// <param name="addReplyComment"></param>
 /// <returns></returns>
 public bool AddReplyComment(ReplyCommentModel addReplyComment)
 {
     return(_replyCommentRepository.AddReplyComment(addReplyComment));
 }