Esempio n. 1
0
        public object GetExamples()
        {
            var request = new WithdrawRequest()
            {
                AccountId = new Guid("59be82bc-ebab-4d11-8acf-07f348a5572f"),
                Amount    = 300.5M
            };

            return(request);
        }
        public async Task <IActionResult> Withdraw([FromBody][Required] WithdrawRequest request)
        {
            var withdrawInput = new WithdrawInput(
                request.AccountId,
                new PositiveMoney(request.Amount)
                );
            await _withdrawUseCase.Execute(withdrawInput);

            return(_presenter.ViewModel);
        }