public void UpdateMovie(Movie movie) { _context.Entry(movie).State = EntityState.Modified; }
public void UpdateActor(Actor actor) { _context.Entry(actor).State = EntityState.Modified; }
public void UpdateProducer(Producer producer) { _context.Entry(producer).State = EntityState.Modified; }
public void Update(T entity) { _context.Entry(entity).State = EntityState.Modified; _context.Set <T>().Update(entity); _context.SaveChanges(); }