public async Task <IActionResult> Get([FromRoute][Required] GetAccountDetailsRequest request)
        {
            var input = new GetAccountDetailsInput(new AccountId(request.AccountId));
            await _mediator.PublishAsync(input);

            return(_presenter.ViewModel);
        }
Ejemplo n.º 2
0
        public async Task <IActionResult> Get(
            [FromServices] IMediator mediator,
            [FromServices] GetAccountDetailsPresenter presenter,
            [FromRoute][Required] GetAccountDetailsRequest request)
        {
            var input = new GetAccountDetailsInput(new AccountId(request.AccountId));
            await mediator.PublishAsync(input)
            .ConfigureAwait(false);

            return(presenter.ViewModel);
        }