public void DeleteRentedMovie(int id) { var retedMovie = context.RenteredSetMovies.Find(id); context.RenteredSetMovies.Remove(retedMovie); context.SaveChanges(); }
public void CreateCustomer(Customer customer) { context.Customers.Add(customer); context.SaveChanges(); }
public void CreateMovie(Movie movie) { context.Movies.Add(movie); context.SaveChanges(); }