Exemple #1
0
        public bool CreateCustomer(string name, string address, string city, string zip, string phone, string email, string comment)
        {
            int.TryParse(zip, out int zipConvert);
            int id = databaseRepo.CreateCustomer(name, address, city, zipConvert, phone, email, comment);

            if (id <= 0)
            {
                return(false);
            }

            customers.Add(new Customer(id, name, address, zipConvert, city, phone, email, comment));
            return(true);
        }