public CCustomer AddCustomer(string name, string surname, int id) { CCustomer c = new CCustomer(name, surname, id); this.customers.Add(c); return(c); }
public void StoreAccount(int id, int ownerID) { CAccount acc = new CAccount(id, ownerID); this.accounts.Add(acc); CCustomer c = GetCustomer(ownerID); c.AddAccount(acc); }