Beispiel #1
0
        public static void CreateMovie()
        {
            StandardMessages.CreateMessage("a Movie");
            Movie movie = ItemDataCapture.Movie();

            MovieRepository.SaveMovieToDB(movie);
            StandardMessages.WasCreatedMessage("book");
        }
Beispiel #2
0
        public static void UpdateMovie()
        {
            Movie movieToUpdate = SelectMovieById.SelectMovie("update");

            if (movieToUpdate != null)
            {
                Movie updatedMovie = ItemDataCapture.Movie();
                MovieRepository.UpdateMovie(movieToUpdate.Id, updatedMovie);
                StandardMessages.UpdatedMessage("movie");
            }
        }