Esempio n. 1
0
        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));
        }