Пример #1
0
        public static void CreateBook()
        {
            StandardMessages.CreateMessage("a Book");
            Book book = ItemDataCapture.Book();

            BookRepository.SaveBookToDB(book);
            StandardMessages.WasCreatedMessage("book");
        }
Пример #2
0
        public static void UpdateBook()
        {
            Book bookToUpdate = SelectBookById.SelectBook("update");

            if (bookToUpdate != null)
            {
                Book updatedBook = ItemDataCapture.Book();
                BookRepository.UpdateBook(bookToUpdate.Id, updatedBook);
                StandardMessages.UpdatedMessage("book");
            }
        }