Beispiel #1
0
 public AuctionItem GetItemById(int itemNumber)
 {
     lock (_lock)
     {
         return(AuctionItemList.GetList().Where(x => x.ItemNumber == itemNumber).SingleOrDefault());
     }
 }
Beispiel #2
0
 public List <AuctionItem> GetAllItems()
 {
     lock (_lock)
     {
         return(AuctionItemList.GetList());
     }
 }