Exemple #1
0
        public bool CreateCustomer(string name, string address, string zip, string town, string telephone)
        {
            if (db.GetCustomer(telephone) == null)
            {
                ICustomer customer   = new Customer(name, telephone, zip, address, town, -1);
                int       customerID = db.CreateCustomer(customer);
                customer.CustomerID = customerID;
                return(true);
            }

            return(false);
        }