/// <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; }
/// <summary> /// Initializes a new instance of the <see cref="AddressEditModel"/> class. /// </summary> public AddressEditModel() { Address = new AddressModel(); }
/// <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; }