예제 #1
0
        public bool DeleteMovie(Film film)
        {
            if (movieDao.FindMovieById(film.Id) != null)
            {
                List <Commentaire_Note> comment = commentsDao.FindCommentsByMovie(film.Id);

                if (comment != null)
                {
                    foreach (Commentaire_Note delete in comment)
                    {
                        commentsDao.DeleteComments(delete);
                    }
                }

                return(movieDao.DeleteMovie(film));
            }

            return(false);
        }