private FoundationAddress CreateAddress() { var address = new FoundationAddress(CustomerAddress.CreateInstance()); address.AddressId = BusinessManager.Create(address.Address); return(address); }
public B2BAddressViewModel(FoundationAddress address) { AddressId = address.AddressId; Name = address.Name; Street = address.Street; City = address.City; PostalCode = address.PostalCode; CountryCode = address.CountryCode; CountryName = address.CountryName; }