Beispiel #1
0
        public IHttpActionResult Get([FromUri] int id)
        {
            AuthorModel author = authorBll.GetAuthorById(id);

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