Exemplo n.º 1
0
        public SimpleBookDto FindByISBN(string isbn)
        {
            Book book = _dao.Load(isbn);

            if (book != null)
            {
                return(book.ToSimpleBookDto());
            }
            else
            {
                throw new EntityDoesNotExistException(
                          $"There's no saved book with that ISBN ({isbn}), try adding it");
            }
        }