Пример #1
0
        public async Task <ActionResult <TransferResult> > Transfer(int sourceAccountId, int destinationAccountId, [FromBody] TransferInput input)
        {
            TransferResult result = await _usersAcccountsManager.Transfer(sourceAccountId, destinationAccountId, input.Amount);

            return(Ok(result));
        }
Пример #2
0
        public async Task <ActionResult <decimal> > Withdraw(int accountId, [FromBody] TransferInput input)
        {
            decimal balance = await _usersAcccountsManager.Withdraw(accountId, input.Amount);

            return(Ok(balance));
        }