Esempio n. 1
0
        public Director Delete(int directorId)
        {
            Director director = context.Directors.Find(directorId); if (director != null)

            {
                context.Directors.Remove(director); context.SaveChanges();
            }

            return(director);
        }
Esempio n. 2
0
        public Movie Delete(int movieId)
        {
            Movie movie = context.Movies.Find(movieId); if (movie != null)

            {
                context.Movies.Remove(movie); context.SaveChanges();
            }

            return(movie);
        }
Esempio n. 3
0
        public Review Delete(int reviewId)
        {
            Review review = context.Reviews.Find(reviewId); if (review != null)

            {
                context.Reviews.Remove(review); context.SaveChanges();
            }

            return(review);
        }