public IActionResult Post([FromBody] BookVO book) { if (book.IsNull()) { return(BadRequest()); } return(new ObjectResult(_bookBusiness.Create(book))); }
// PUT api/values/5 public IActionResult Put([FromBody] BookVO book) { if (book == null) { return(BadRequest()); } book = _bookBusiness.Update(book); if (book.IsNull()) { return(NotFound()); } return(new ObjectResult(book)); }