public static async Task <List <int> > GetItemSetByLabIDAsync(int labID)
        {
            List <ItemDetail> itemDetails = await ItemDB.GetAllDetailByLabIDAsync(labID);

            List <int> itemSet = new List <int>();

            itemDetails.ForEach(item =>
            {
                if (!itemSet.Contains(item.type))
                {
                    itemSet.Add(item.type);
                }
            });

            return(itemSet);
        }
        public static async Task <Dictionary <int, string> > GetItemSetAsync()
        {
            List <ItemDetail> itemDetails = await ItemDB.GetAllDetailAsync();

            List <int> itemSet = new List <int>();
            Dictionary <int, string> itemSetDict = new Dictionary <int, string>();

            itemDetails.ForEach(item =>
            {
                if (!itemSet.Contains(item.type))
                {
                    itemSet.Add(item.type);
                    itemSetDict.Add(item.type, item.name);
                }
            });

            return(itemSetDict);
        }
        public static async Task <List <int> > GetAllQuantityByLabIDAsync(int labID)
        {
            List <ItemDetail> itemDetails = await ItemDB.GetAllDetailByLabIDAsync(labID);

            List <int> itemSet      = new List <int>();
            List <int> itemQuantity = new List <int>();

            itemDetails.ForEach(item =>
            {
                if (!itemSet.Contains(item.type))
                {
                    itemSet.Add(item.type);
                    itemQuantity.Add(0);
                }

                int index = itemSet.IndexOf(item.type);
                itemQuantity[index]++;
            });

            return(itemQuantity);
        }