/// <summary> /// Add a new customer to the customers list /// </summary> /// <param name="name"></param> /// <param name="address"></param> /// <returns></returns> public Customer AddCustomer(string name, string address) { // Create a new customer object using the factory method to generate a unique id Customer cust = _custFactory.FactoryMethod(); // Set the customer details using the name and address provided cust.Name = name; cust.Address = address; // Create a new booking list to store bookings for the customer cust.Bookings = new List <Booking>(); // Add the created customer to the list of customers _customers.Add(cust); return(cust); }