private List <Customer> GetCustomerList()
        {
            List <Customer> customerList = new List <Customer>();

            Data.FactoryManager m = new Data.FactoryManager();
            foreach (Data.Customer i in m.GetCustomerManager().FindAll())
            {
                Customer c = new Customer(i.CustomerId, i.FirstName, i.LastName);
                customerList.Add(c);
            }
            return(customerList);
        }
 public void UpdateCustomer(Customer c)
 {
     Data.FactoryManager m = new Data.FactoryManager();
     m.GetCustomerManager().Update(c.CustomerId, c.FirstName, c.LastName);
 }
 public void DeleteCustomer(int customerId)
 {
     Data.FactoryManager m = new Data.FactoryManager();
     m.GetCustomerManager().Delete(customerId);
 }
 public int AddCustomer(string firstName, string lastName)
 {
     Data.FactoryManager m = new Data.FactoryManager();
     return(m.GetCustomerManager().Add(firstName, lastName));
 }