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; }
public OrderEditShippingAddressModel CreateOrderShippingAddressModel(UOrder_Order from) { if (from == null) { return(null); } var to = new OrderEditShippingAddressModel(); CopyOrderEditShippingAddressModel(to, from); return(to); }