//Fund Transfer between Accounts public bool FundTransfer(string accountFrom, string AccountTo, double Amount, string Currency) { var withdraw = AccountOperation.Withdraw(accountFrom, Amount, Currency); var deposit = AccountOperation.Deposit(AccountTo, Amount, Currency); if (withdraw == true && deposit == true) { return(true); } else { return(false); } }
public void Withdraw(int id, int amout) { var account = _accountOperation.GetAccount(id); _accountOperation.Withdraw(account, amout); }
//Withdraw from Account public bool AccountWithdraw(string AccNo, double Amount, string Currency) { var withdraw = AccountOperation.Withdraw(AccNo, Amount, Currency); return(withdraw); }