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));
 }
Example #2
0
 //Update
 public void UpdateActor(ActorModel Actor)
 {
     _ActorContext.Entry(Actor).State = EntityState.Modified;
 }