public ActionResult Edit([Bind(Include = "ActorName")] Actor actor) { if (ModelState.IsValid) { db.Entry(actor).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(actor)); }
//Update public void UpdateActor(ActorModel Actor) { _ActorContext.Entry(Actor).State = EntityState.Modified; }