public async Task <IActionResult> PutActionResponses(string id, ActionResponses actionResponses) { if (id != actionResponses.fErrorCode) { return(BadRequest()); } _context.Entry(actionResponses).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!ActionResponsesExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }