private static Item CreateItem(Item item, int basketId) { item.BasketId = basketId; var poem = PoemServiceWrapper.Get(item.Id); item.FirstLine = poem.FirstLine; item.Poet = poem.Poet; item.Price = poem.Price; item.Title = poem.Title; ItemStore.Save(item); return item; }
public static void Save(Item item) { Items.Add(item); }