public HttpResponseMessage GetByBook(int id) { var Authors = AuthorBLL.GetAuhtorsByBooks(id); if (Authors == null) { return(Request.CreateResponse(HttpStatusCode.NotFound, id)); } return(Request.CreateResponse(HttpStatusCode.OK, Authors)); }