Esempio n. 1
0
 public Auction PutAuction(int id, [FromBody] Auction auction)
 {
     _context.Entry(auction).State = EntityState.Modified;
     _context.SaveChanges();
     return(auction);
 }
Esempio n. 2
0
 public Auction PostAuction([FromBody] Auction auction)
 {
     _context.Auctions.Add(auction);
     _context.SaveChanges();
     return(auction);
 }