public static ShipmentPackage ToWebModel(this VirtoCommerceOrderModuleWebModelShipmentPackage shipmentPackage, IEnumerable<Currency> currencies, Language language) { var webModel = new ShipmentPackage(); webModel.InjectFrom(shipmentPackage); if (shipmentPackage.Items != null) { webModel.Items = shipmentPackage.Items.Select(i => i.ToWebModel(currencies, language)).ToList(); } return webModel; }
public static ShipmentPackage ToWebModel(this VirtoCommerceOrderModuleWebModelShipmentPackage shipmentPackage) { var webModel = new ShipmentPackage(); webModel.InjectFrom(shipmentPackage); if (shipmentPackage.Items != null) { webModel.Items = shipmentPackage.Items.Select(i => i.ToWebModel()).ToList(); } return webModel; }