Exemple #1
0
        public void SaveAuction(Auction auction)
        {
            VendueContext context = new VendueContext();

            context.Auctions.Add(auction);
            context.SaveChanges();
        }
Exemple #2
0
        public List <Auction> GetAllOptions()
        {
            VendueContext context = new VendueContext();

            return(context.Auctions.ToList());
        }
Exemple #3
0
        public void UpdateAuction(Auction auction)
        {
            VendueContext context = new VendueContext();

            context.Entry(auction).State = EntityState.Modified;
        }
Exemple #4
0
        public Auction GetAuctionByID(int ID)
        {
            VendueContext context = new VendueContext();

            return(context.Auctions.Find(ID));
        }