コード例 #1
0
        public async Task <IActionResult> Comment(
            [FromServices] ICommentUseCase useCase,
            [FromRoute][Required] Guid articleId,
            [FromForm][Required] string description)
        {
            useCase.SetOutputPort(this);

            await useCase.Execute(articleId, description)
            .ConfigureAwait(false);

            return(this._viewModel !);
        }