public async Task <IActionResult> PutDtcdata(string id, Dtcdata dtcdata) { if (id != dtcdata.ReferenceNumber) { return(BadRequest()); } _context.Entry(dtcdata).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!DtcdataExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }
public async Task <IActionResult> PutDtcusers(int id, Dtcusers dtcusers) { if (id != dtcusers.UserId) { return(BadRequest()); } _context.Entry(dtcusers).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!DtcusersExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }