public static Inventory ToWebModel(this VirtoCommerce.Client.Model.VirtoCommerceInventoryModuleWebModelInventoryInfo inventoryInfo)
        {
            var retVal = new Inventory();

            retVal.InjectFrom(inventoryInfo);
            return(retVal);
        }
示例#2
0
        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);
        }