public static void CreateMovie() { StandardMessages.CreateMessage("a Movie"); Movie movie = ItemDataCapture.Movie(); MovieRepository.SaveMovieToDB(movie); StandardMessages.WasCreatedMessage("book"); }
public static void CreateBook() { StandardMessages.CreateMessage("a Book"); Book book = ItemDataCapture.Book(); BookRepository.SaveBookToDB(book); StandardMessages.WasCreatedMessage("book"); }
public static void UpdateMovie() { Movie movieToUpdate = SelectMovieById.SelectMovie("update"); if (movieToUpdate != null) { Movie updatedMovie = ItemDataCapture.Movie(); MovieRepository.UpdateMovie(movieToUpdate.Id, updatedMovie); StandardMessages.UpdatedMessage("movie"); } }
public static void UpdateBook() { Book bookToUpdate = SelectBookById.SelectBook("update"); if (bookToUpdate != null) { Book updatedBook = ItemDataCapture.Book(); BookRepository.UpdateBook(bookToUpdate.Id, updatedBook); StandardMessages.UpdatedMessage("book"); } }