public ActionResult Edit([Bind(Include = "ID,word")] Search search) { if (ModelState.IsValid) { db.Entry(search).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(search)); }
public void Update(TEntity item) { _context.Entry(item).State = EntityState.Modified; _context.SaveChanges(); }