public InventoryItemDetailModel CreateInventoryItemDetailModel(AInventory_InventoryItem svcInventoryItem)
        {
            var model = new InventoryItemDetailModel()
            {
                Id               = svcInventoryItem.Id.ToString(),
                TypeName         = svcInventoryItem.Type,
                Sku              = svcInventoryItem.Sku,
                Name             = svcInventoryItem.Name,
                Manufacturer     = svcInventoryItem.Manufacturer,
                Collection       = svcInventoryItem.Collection,
                Quantity         = svcInventoryItem.Quantity,
                WebColor         = svcInventoryItem.Color.WebColor,
                ReservedQuantity = svcInventoryItem.ReservedQuantity
            };

            return(model);
        }
            public static AInventory_InventoryItem Create_InventoryItem_Data(MInventory_LibraryEntry entry)
            {
                //var color = Color.FromAhsb(255, entry.Hue, entry.Saturation / 100.0, entry.Value / 100.0);

                var result = new AInventory_InventoryItem()
                {
                    Id                  = entry.InventoryItemId,
                    Type                = entry.InventoryItemTypeCode,
                    Sku                 = entry.Sku,
                    Name                = entry.Name,
                    Manufacturer        = entry.Manufacturer,
                    Collection          = entry.Collection,
                    Quantity            = entry.Quantity,
                    ReservedQuantity    = entry.ReservedQuantity,
                    Color               = Create_Common_ColorData(entry.Hue, entry.Saturation, entry.Value),
                    InventoryItemStocks = Create_Admin_InventoryItem_StockDataList(entry.Stocks)
                };

                return(result);
            }