private void AddShipFromAddress(UPSRateService.ShipmentType shipment)
        {
            var shipFrom        = new UPSRateService.ShipFromType();
            var shipFromAddress = new UPSRateService.AddressType();

            if (!string.IsNullOrEmpty(ShipFromAddressLine))
            {
                shipFromAddress.AddressLine = new String[] { ShipFromAddressLine }
            }
            ;
            if (!string.IsNullOrEmpty(ShipFromCity))
            {
                shipFromAddress.City = ShipFromCity;
            }
            if (!string.IsNullOrEmpty(ShipFromPostalCode))
            {
                shipFromAddress.PostalCode = ShipFromPostalCode;
            }
            if (!string.IsNullOrEmpty(ShipFromStateProvinceCode))
            {
                shipFromAddress.StateProvinceCode = ShipFromStateProvinceCode;
            }
            if (!string.IsNullOrEmpty(ShipFromCountryCode))
            {
                shipFromAddress.CountryCode = ShipFromCountryCode;
            }
            shipFrom.Address  = shipFromAddress;
            shipment.ShipFrom = shipFrom;
        }
 private void AddShipFromAddress(UPSRateService.ShipmentType shipment)
 {
     var shipFrom = new UPSRateService.ShipFromType();
     var shipFromAddress = new UPSRateService.AddressType();
     if (!string.IsNullOrEmpty(ShipFromAddressLine))
         shipFromAddress.AddressLine = new String[] { ShipFromAddressLine };
     if (!string.IsNullOrEmpty(ShipFromCity))
         shipFromAddress.City = ShipFromCity;
     if (!string.IsNullOrEmpty(ShipFromPostalCode))
         shipFromAddress.PostalCode = ShipFromPostalCode;
     if (!string.IsNullOrEmpty(ShipFromStateProvinceCode))
         shipFromAddress.StateProvinceCode = ShipFromStateProvinceCode;
     if (!string.IsNullOrEmpty(ShipFromCountryCode))
         shipFromAddress.CountryCode = ShipFromCountryCode;
     shipFrom.Address = shipFromAddress;
     shipment.ShipFrom = shipFrom;
 }