コード例 #1
0
 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);
 }
コード例 #2
0
 public BillingInformationModel(BillingInformation entity)
 {
     NameOnCard        = entity.NameOnCard;
     CardNumber        = entity.CardNumber;
     CardSecurityValue = entity.CardSecurityValue;
     ExpirationMonth   = entity.ExpirationMonth;
     ExpirationYear    = entity.ExpirationYear;
     Address           = new SystemAddressModel(entity.Address);
 }
コード例 #3
0
 //  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;
 }