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