public ActionResult Edit(Genre genre) { // Take the genre that we got from our Edit view(thisGenre) // Update that information using a form _db.Entry(genre).State = EntityState.Modified; _db.SaveChanges(); return(RedirectToAction("Details", genre.GenreId)); }
public ActionResult Edit(Actor actor) { _db.Entry(actor).State = EntityState.Modified; _db.SaveChanges(); return(RedirectToAction("Details", actor.ActorId)); }
public ActionResult Edit(Movie movie) { _db.Entry(movie).State = EntityState.Modified; _db.SaveChanges(); return(RedirectToAction("Details", movie.MovieId)); //might not work }