예제 #1
0
        public async Task <IActionResult> Deposit([FromBody] DepositRequest message)
        {
            var output = await _depositUseCase.Execute(message.AccountId, message.Amount);

            _presenter.Populate(output);
            return(_presenter.ViewModel);
        }
예제 #2
0
        public async Task <IActionResult> Deposit([FromBody] DepositRequest message)
        {
            var request = new DepositInput(message.AccountId, message.Amount);

            await depositInput.Process(request);

            return(depositPresenter.ViewModel);
        }
        public async Task <IActionResult> Deposit([FromBody] DepositRequest message)
        {
            await _depositUseCase.Execute(new Input(message.AccountId, new PositiveAmount(message.Amount)));

            return(_presenter.ViewModel);
        }