private void FillProperties(SubscriptionManager.DataLayer.DataTables.Customer customer) { HasData = true; if (customer != null) { CustomerId = customer.CustomerId; StoreId = customer.StoreId; FirstName = customer.FirstName; LastName = customer.LastName; PhoneNumber = customer.PhoneNumber; EmailAddress = customer.EmailAddress; City = customer.City; State = customer.State; ZipCode = customer.ZipCode; SubscriptionCount = customer.SubscriptionCount; CreateDate = customer.CreateDate; CreateUserId = customer.CreateUserId; ChangeUserId = customer.ChangeUserId; ChangeDate = customer.ChangeDate; DeleteDate = customer.DeleteDate; } }
public Customer(SubscriptionManager.DataLayer.DataTables.Customer customer) { FillProperties(customer); }