public async Task <IActionResult> Deposit( [FromServices] IDepositUseCase useCase, [FromRoute][Required] Guid accountId, [FromForm][Required] decimal amount, [FromForm][Required] string currency) { useCase.SetOutputPort(this); await useCase.Execute(accountId, amount, currency) .ConfigureAwait(false); return(this._viewModel !); }
#pragma warning disable SCS0016 // Controller method is potentially vulnerable to Cross Site Request Forgery (CSRF). public async Task <IActionResult> Deposit( #pragma warning restore SCS0016 // Controller method is potentially vulnerable to Cross Site Request Forgery (CSRF). [FromServices] IDepositUseCase useCase, [FromRoute][Required] Guid accountId, [FromForm][Required] decimal amount, [FromForm][Required] string currency) { useCase.SetOutputPort(this); await useCase.Execute(accountId, amount, currency) .ConfigureAwait(false); return(this._viewModel !); }