Exemplo n.º 1
0
 public Auction Create(Auction auction)
 {
     context.Auctions.Add(auction);
     context.SaveChanges();
     return(auction);
 }
Exemplo n.º 2
0
 public virtual void RemoveItem(Auction auction)
 {
     items.RemoveAll
         (i => i.Auction.AuctionId == auction.AuctionId);
 }