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