// DELETE: api/Author/5 public HttpResponseMessage Delete(int id) { if (!AuthorBLL.DeleteAuthor(id)) { return(Request.CreateResponse(HttpStatusCode.InternalServerError)); } return(Request.CreateResponse(HttpStatusCode.OK)); }