コード例 #1
0
 private void CopyOrderEditShippingAddressModel(OrderEditShippingAddressModel to, UOrder_Order from)
 {
     to.OrderId      = from.MOrder.OrderId;
     to.Name         = from.MOrder.ShippingAddress.Name;
     to.AddressLine1 = from.MOrder.ShippingAddress.AddressLine1;
     to.AddressLine2 = from.MOrder.ShippingAddress.AddressLine2;
     to.City         = from.MOrder.ShippingAddress.City;
     to.StateCode    = from.MOrder.ShippingAddress.StateCode;
     to.PostalCode   = from.MOrder.ShippingAddress.PostalCode;
     to.CountryCode  = from.MOrder.ShippingAddress.CountryCode;
 }
コード例 #2
0
        public OrderEditShippingAddressModel CreateOrderShippingAddressModel(UOrder_Order from)
        {
            if (from == null)
            {
                return(null);
            }

            var to = new OrderEditShippingAddressModel();

            CopyOrderEditShippingAddressModel(to, from);
            return(to);
        }