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))); }
public bool AddReply(int id, string reply) { var p = _commentService.AddReply(id, reply); return(p); }
public async Task <IActionResult> AddReply(int commentId, ReplyDto replyDto) { return(await Create(nameof(AddReply), async() => await _commentService.AddReply(User.Identity.GetUserId(), commentId, replyDto))); }