public static bool UpdateCustomer(Customer user) { iCustomer c = new iCustomer( user.Id, user.CustomerType, user.Email, user.Password, user.Company, user.FirstName, user.LastName, user.StreetNo, user.StreetNoSuffix, user.Address1, user.Address2, user.POBox, user.City, user.State, user.ZIP, user.Country, user.Phone, user.CellPhone, user.UserType, user.Active, user.DateAdded ); return(CustomerBase.Instance.Update(c)); }
private static Customer GetCustomerValuesFromiCustomer(iCustomer record) { if (record == null) { return(null); } else { return(new Customer( record.Id, record.CustomerType, record.Email, record.Password, record.Company, record.FirstName, record.LastName, record.StreetNo, record.StreetNoSuffix, record.Address1, record.Address2, record.POBox, record.City, record.State, record.ZIP, record.Country, record.Phone, record.CellPhone, record.UserType, record.Active, record.DateAdded )); } }