Ejemplo n.º 1
0
 /// <summary>
 /// Converts to address model.
 /// </summary>
 /// <param name="address">The address.</param>
 /// <returns>AddressModel.</returns>
 private static AddressModel ConvertToAddressModel(OrderAddress address)
 {
     var addr = new AddressModel();
     addr.InjectFrom(address);
     addr.AddressId = address.OrderAddressId;
     return addr;
 }
Ejemplo n.º 2
0
		/// <summary>
		/// Initializes a new instance of the <see cref="AddressEditModel"/> class.
		/// </summary>
		public AddressEditModel()
		{
			Address = new AddressModel();
		}
Ejemplo n.º 3
0
 /// <summary>
 /// Converts to customer address.
 /// </summary>
 /// <param name="address">The address.</param>
 /// <returns>Address.</returns>
 private static Address ConvertToCustomerAddress(AddressModel address)
 {
     var addr = new Address();
     addr.InjectFrom(address);
     return addr;
 }