public async Task <IActionResult> AddCommentToPost(Comment comment) { var numberOfRecords = await _commentService.AddCommentToPostAsync(comment).ConfigureAwait(false); return(Ok(numberOfRecords)); }
public async Task <IActionResult> AddComment([FromBody] CommentCreateDto value) { var result = await _commentService.AddCommentToPostAsync(value); return(Ok(result)); }