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)); } }
/// <summary> /// 增加评论回复 /// </summary> /// <param name="addReplyComment"></param> /// <returns></returns> public bool AddReplyComment(ReplyCommentModel addReplyComment) { return(_replyCommentRepository.AddReplyComment(addReplyComment)); }