public static void CreateBook() { StandardMessages.CreateMessage("a Book"); Book book = ItemDataCapture.Book(); BookRepository.SaveBookToDB(book); StandardMessages.WasCreatedMessage("book"); }
public static void UpdateBook() { Book bookToUpdate = SelectBookById.SelectBook("update"); if (bookToUpdate != null) { Book updatedBook = ItemDataCapture.Book(); BookRepository.UpdateBook(bookToUpdate.Id, updatedBook); StandardMessages.UpdatedMessage("book"); } }