public async Task <ActionResult <Reply> > AddReply(ReplyDto reply)
        {
            var user_id = Convert.ToInt32(GetClaim("id"));

            Global.LogMessage(JsonConvert.SerializeObject(reply));

            return(Ok(await _commentService.AddReply(user_id, reply)));
        }
Example #2
0
        public bool AddReply(int id, string reply)
        {
            var p = _commentService.AddReply(id, reply);

            return(p);
        }
Example #3
0
 public async Task <IActionResult> AddReply(int commentId, ReplyDto replyDto)
 {
     return(await Create(nameof(AddReply), async() => await _commentService.AddReply(User.Identity.GetUserId(), commentId, replyDto)));
 }