public async Task <IActionResult> PutTitlebasics(string id, Titlebasics titlebasics) { if (id != titlebasics.Tconst) { return(BadRequest()); } _context.Entry(titlebasics).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!TitlebasicsExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }