예제 #1
0
        protected Services.Address ConvertAddress(AddressInfo address)
        {
            var newAddress = new Services.Address();

            newAddress.AddressLine = address.Address;
            newAddress.City        = address.City;
            newAddress.State       = address.State;
            newAddress.Country     = address.Country.Code;
            newAddress.Zip         = address.Zip;
            return(newAddress);
        }
예제 #2
0
        protected Services.Address ConvertAddress(ActiveCommerce.Orders.Address address)
        {
            var newAddress = new Services.Address
            {
                AddressLine = address.AddressLine,
                City        = address.CityName,
                State       = address.CountrySubentity,
                Country     = address.CountryCode,
                Zip         = address.PostalZone
            };

            return(newAddress);
        }