Example #1
0
 public IEnumerable <Book> GetBooksByAuthor(string author)
 {
     if (!string.IsNullOrEmpty(author))
     {
         return(bookDao.GetBooksByAuthor(author));
     }
     else
     {
         throw new ArgumentException("Value empty or null -> author");
     }
 }
Example #2
0
 public IEnumerable <Book> GetBooksByAuthor(string author) => _bookDao.GetBooksByAuthor(author);