Exemple #1
0
        private static SoldItem ReadSoldItem(dynamic item)
        {
            string itemId = item.item_id;

            SoldItem soldItem = new SoldItem(itemId);

            return(soldItem);
        }
Exemple #2
0
        private static List <SoldItem> ReadSoldItems(dynamic soldItemsD)
        {
            List <SoldItem> soldItems = new List <SoldItem>();

            if (soldItemsD != null)
            {
                foreach (dynamic item in soldItemsD)
                {
                    SoldItem soldItem = ReadSoldItem(item);
                    soldItems.Add(soldItem);
                }
            }

            return(soldItems);
        }