public IHttpActionResult Get([FromUri] int id) { AuthorModel author = authorBll.GetAuthorById(id); if (author != null) { return(Ok(author)); } return(NotFound()); }