//Update public static void Update(Customer customer, int id, string firstName, string lastName, string email, string telephone) { customer.ID = id; customer.FirstName = firstName; customer.LastName = lastName; customer.EmailAddress = email; customer.Telephone = telephone; }
//Create public static Customer Create (int id, string firstName, string lastName, string email, string telephone) { Customer customer = new Customer(); customer.ID = id; customer.FirstName = firstName; customer.LastName = lastName; customer.EmailAddress = email; customer.Telephone = telephone; customers.Add(customer); return customer; }
public static void Add(Customer customer) { customers.Add(customer); }