public void Update( Movie movie ) { using ( MovieIndexContext context = new MovieIndexContext( ) ) { context.Entry( movie ).State = EntityState.Modified; context.SaveChanges( ); } }
public void Update(Movie movie) { using (MovieIndexContext context = new MovieIndexContext( )) { context.Entry(movie).State = EntityState.Modified; context.SaveChanges( ); } }