Guest User

Untitled

a guest
Jun 24th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. public void IsbnEntered()
  2. {
  3. var isbn = view.Isbn;
  4.  
  5. if (isbnService.NumberIsValid(isbn))
  6. {
  7. var details = isbnService.RetrieveDetailsForIsbn(isbn);
  8.  
  9. if (details != null)
  10. {
  11. view.Display(details);
  12. view.EnableSaveButton();
  13. }
  14. else
  15. {
  16. view.DisplayError("ISBN could not be found");
  17. }
  18. }
  19. else
  20. {
  21. view.DisplayError("Invalid ISBN");
  22. }
  23. }
Add Comment
Please, Sign In to add comment