Beispiel #1
0
        public CCustomer AddCustomer(string name, string surname, int id)
        {
            CCustomer c = new CCustomer(name, surname, id);

            this.customers.Add(c);
            return(c);
        }
Beispiel #2
0
        public void StoreAccount(int id, int ownerID)
        {
            CAccount acc = new CAccount(id, ownerID);

            this.accounts.Add(acc);

            CCustomer c = GetCustomer(ownerID);

            c.AddAccount(acc);
        }