FacadePattern.AccountNumberCheck.AccountActive C# (CSharp) Method

AccountActive() public method

public AccountActive ( int accNumber ) : bool
accNumber int
return bool
        public bool AccountActive(int accNumber)
        {
            if (accNumber == accountNumber)
                return true;
            else
                return false;
        }

Usage Example

 public void WithDrawCash(double cashToGet)
 {
     if (accChecker.AccountActive(GetAccountNumber()) && codeChecker.IsCodeCorrect(GetSecurityCode()) && fundChecker.HaveEnoughMoney(cashToGet))
     {
         Console.WriteLine("Transaction Completed\n");
     }
     else
     {
         Console.WriteLine("Transaction Failed\n");
     }
 }
All Usage Examples Of FacadePattern.AccountNumberCheck::AccountActive