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