public async Task <IActionResult> PutEngineer(long id, [FromBody] Engineer engineer) { if (id != engineer.Id) { return(BadRequest()); } _context.Entry(engineer).State = EntityState.Modified; await _context.SaveChangesAsync(); return(NoContent()); }