private static SoldItem ReadSoldItem(dynamic item) { string itemId = item.item_id; SoldItem soldItem = new SoldItem(itemId); return(soldItem); }
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); }