public static int AddCustomer(LTS.Customer customer) { int?CustomerID = -1; try { using (LTS.LTSBase access = new LTS.LTSDC()) { access.InsertCustomer(customer.CellNo, customer.CustAddress, customer.Email, customer.IDno, customer.Name, customer.Surname, ref CustomerID); } } catch (Exception ex) { } return(CustomerID.Value); }