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