public PointOfContactModel(PointOfContact entity) { FirstName = entity.FirstName; LastName = entity.LastName; Title = entity.Title; Address = new SystemAddressModel(entity.Address); PhoneNumber = new SystemPhoneNumberModel(entity.PhoneNumber); EmailAddress = new SystemEmailAddressModel(entity.EmailAddress); }
public BillingInformationModel(BillingInformation entity) { NameOnCard = entity.NameOnCard; CardNumber = entity.CardNumber; CardSecurityValue = entity.CardSecurityValue; ExpirationMonth = entity.ExpirationMonth; ExpirationYear = entity.ExpirationYear; Address = new SystemAddressModel(entity.Address); }
// Create model from entity. public CustomerModel(CustomerEntity entity) { Id = entity.Id; CanonicalName = entity.CanonicalName; DisplayName = entity.DisplayName; AdminMoniker = entity.AdminMoniker; TenantMonikers = entity.TenantMonikers; Address = new SystemAddressModel(entity.Address); PhoneNumber = new SystemPhoneNumberModel(entity.PhoneNumber); Website = new SystemWebsiteModel(entity.Website); PointOfContact = new PointOfContactModel(entity.PointOfContact); Enabled = entity.Enabled; }