Ejemplo n.º 1
0
 public static PfCustomerAddress DeliveryAddressToPfCustomerAddress(DeliveryAddress deliveryAddress)
 {
     if (deliveryAddress == null)
     {
         return(null);
     }
     return(new PfCustomerAddress()
     {
         AutoID = deliveryAddress.AutoID,
         PfCustomerID = deliveryAddress.UserID,
         Name = deliveryAddress.Name,
         Telphone = deliveryAddress.Telphone,
         CityZone = deliveryAddress.CityZone,
         DetailAddress = deliveryAddress.DetailAddress
     });
 }
Ejemplo n.º 2
0
 public static WxMemberAddress DeliveryAddressToWxMemberAddress(DeliveryAddress deliveryAddress)
 {
     if (deliveryAddress == null)
     {
         return(null);
     }
     return(new WxMemberAddress()
     {
         AutoID = deliveryAddress.AutoID,
         PhoneNumber = deliveryAddress.UserID,
         Name = deliveryAddress.Name,
         Telphone1 = deliveryAddress.Telphone,
         Telphone2 = "",
         CityZone = deliveryAddress.CityZone,
         DetailAddress = deliveryAddress.DetailAddress
     });
 }