Ejemplo n.º 1
0
        public IHttpActionResult GetBook([FromUri] int id)
        {
            var booksRecrod = _booksDbContext.GetBook(id);

            if (booksRecrod == null)
            {
                return(NotFound());
            }
            else
            {
                return(Ok(booksRecrod));
            }
        }