예제 #1
0
 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;
 }
예제 #2
0
 public static void Save(Item item)
 {
     Items.Add(item);
 }