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