コード例 #1
0
        //Creating customer with account, accesses multiple tables
        static void CustomerCreation()
        {
            Bank bank = _bankView.ReadBank();

            if (bank != null)
            {
                Customer customer = _customerView.CreateCustomer(bank);

                _accountView.CreateAccount(customer);
            }
            else
            {
                Console.WriteLine("Bank not found, please try again.");
            }
        }