Example #1
0
        public IHttpActionResult GetBook(int id)
        {
            Book book = db.FindBookById(id);

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

            return(Ok(book));
        }