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