public IHttpActionResult GetAuthor(int id) { Author author = db.FindAuthorById(id); if (author == null) { return(NotFound()); } return(Ok(author)); }