예제 #1
0
        public async Task <ActionResult> CommentAsync([FromRoute] string id, [FromBody] CommentRequest request, CancellationToken cancellationToken)
        {
            await _answerService.CommentAsync(id, request, cancellationToken);

            return(Ok());
        }
예제 #2
0
        public async Task <ActionResult> CommentAsync(string id, [FromBody] CommentInput comment, CancellationToken cancellationToken)
        {
            await _answerService.CommentAsync(id, comment, cancellationToken);

            return(Ok());
        }