public bool UpdateCustomer(Customer customer, string firstName, string lastName, string phoneNum, string zip, string email, bool active) { var result = false; int? customerID = customer.CustomerID; string oldFirstName = customer.FirstName; string oldLastName = customer.LastName; string oldPhoneNum = customer.PhoneNumber; string oldZip = customer.Zip; string oldEmail = customer.Email; bool oldActive = customer.Active; try { result = (1 == CustomerAccessor.UpdateCustomerInfo(customerID, oldFirstName, oldLastName, oldPhoneNum, oldZip, oldEmail, oldActive, firstName, lastName, phoneNum, zip, email, active)); } catch (Exception ex) { throw new Exception("An error occurred updating customer info." + ex.Message); } return(result); }