public IActionResult Put([FromBody] Books book) { if (book == null) { return(BadRequest()); } return(new ObjectResult(_booksbusiness.Update(book))); //return Ok(); }
public IActionResult Put([FromBody] BookVO bookVO) { if (bookVO == null) { return(NotFound()); } return(Ok(_bookBusiness.Update(bookVO))); }
public IActionResult Put([FromBody] BooksVO books) { if (books != null) { return(Ok(_booksRepository.Update(books))); } else { return(BadRequest("Nullable object")); } }
public IActionResult Put([FromBody] Books book) { if (book == null) { return(BadRequest()); } var alteraItem = _BookService.Update(book); if (book == null) { return(NoContent()); } return(new ObjectResult(alteraItem)); }