public IActionResult Get([FromQuery] string author) { var books = _business.FindByAuthor(author); if (books.Count() == 0) { return(NotFound($"Person with name {author} not found")); } return(Ok(books)); }
public IActionResult Get([FromQuery] string author) { var books = _business.FindByAuthor(author); if (books.Count() == 0) { return(NotFound($"Person with name {author} not found")); } return(Ok(books)); }