// GET: api/Author/5 public HttpResponseMessage Get(int id) { var Author = AuthorBLL.GetAutorBy(id); if (Author == null) { return(Request.CreateResponse(HttpStatusCode.NotFound, id)); } return(Request.CreateResponse(HttpStatusCode.OK, Author)); }