Example #1
0
 public CustomerAddressEditViewModel(CustomerAddressPart part)
 {
     AddressAlias = part.AddressAlias;
     IsDefault    = part.IsDefault;
     Company      = part.Company;
     FirstName    = part.FirstName;
     LastName     = part.LastName;
     Address1     = part.Address1;
     Address2     = part.Address2;
     Zipcode      = part.Zipcode;
     City         = part.City;
     CountryId    = part.CountryId;
     StateId      = part.StateId;
     CustomerId   = part.Customer != null ? part.Customer.ContentItem.Id : 0;
 }
 public CustomerAddressEditViewModel(CustomerAddressPart part)
 {
     AddressAlias = part.AddressAlias;
         IsDefault = part.IsDefault;
         Company = part.Company;
         FirstName = part.FirstName;
         LastName = part.LastName;
         Address1 = part.Address1;
         Address2 = part.Address2;
         Zipcode = part.Zipcode;
         City = part.City;
         CountryId = part.CountryId;
         StateId = part.StateId;
         CustomerId = part.Customer != null ? part.Customer.ContentItem.Id : 0;
 }