public async Task <IActionResult> Edit(int id, [Bind("ID,English,Japanese,Pronunciation,Definition,Notes,Category,Synonyms,Example,System")] WordModel wordModel) { if (id != wordModel.ID) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(wordModel); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!WordModelExists(wordModel.ID)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(wordModel)); }