Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void IsbnEntered()
- {
- var isbn = view.Isbn;
- if (isbnService.NumberIsValid(isbn))
- {
- var details = isbnService.RetrieveDetailsForIsbn(isbn);
- if (details != null)
- {
- view.Display(details);
- view.EnableSaveButton();
- }
- else
- {
- view.DisplayError("ISBN could not be found");
- }
- }
- else
- {
- view.DisplayError("Invalid ISBN");
- }
- }
Add Comment
Please, Sign In to add comment