// POST: api/Book public HttpResponseMessage Post([FromBody] BookEntity bookentity) { var Book = BookBLL.CreateBook(bookentity); if (Book == null) { return(Request.CreateResponse(HttpStatusCode.NotFound)); } return(Request.CreateResponse(HttpStatusCode.Created, Book)); }