// gives next customer number. Useful if the database is on a server and the system is used on many machines. It ensures that no // customers with duplicate numbers are created. public static int GetNextCustomerNumber() { if (DatabaseCalls.GetNextCustomerNo() == -1) { return(1); } return(DatabaseCalls.GetNextCustomerNo()); }