public static Inventory ToWebModel(this VirtoCommerce.Client.Model.VirtoCommerceInventoryModuleWebModelInventoryInfo inventoryInfo) { var retVal = new Inventory(); retVal.InjectFrom(inventoryInfo); return(retVal); }
public static Inventory ToWebModel(this VirtoCommerce.Client.Model.VirtoCommerceInventoryModuleWebModelInventoryInfo inventoryInfo) { var retVal = new Inventory(); retVal.InjectFrom <NullableAndEnumValueInjecter>(inventoryInfo); retVal.Status = EnumUtility.SafeParse(inventoryInfo.Status, InventoryStatus.Disabled); return(retVal); }