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

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

            return(Ok());
        }