public async Task <IActionResult> PutQuote(int id, Quote quote) { if (id != quote.Id) { return(BadRequest()); } _context.Entry(quote).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!QuoteExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }