Exemple #1
0
        public IHttpActionResult GetAuthor(int id)
        {
            Author author = db.FindAuthorById(id);

            if (author == null)
            {
                return(NotFound());
            }

            return(Ok(author));
        }