public void Transfer(AccountTransafer transafer) { var createTransferCommand = new CreateTransferCommand(transafer.FromAccount, transafer.ToAccount, transafer.TransferAmount); _bus.SendCommand(createTransferCommand); }
public IActionResult Post([FromBody] AccountTransafer transafer) { _service.Transfer(transafer); return(Ok(transafer)); }