public async Task<IActionResult> PutAccuHistory([FromRoute] int id, [FromBody] AccuHistory accuHistory) { if (!ModelState.IsValid) { return BadRequest(ModelState); } if (id != accuHistory.Id) { return BadRequest(); } _context.Entry(accuHistory).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!AccuHistoryExists(id)) { return NotFound(); } else { throw; } } return NoContent(); }