Ejemplo n.º 1
0
 public IActionResult Put([FromBody] Books book)
 {
     if (book == null)
     {
         return(BadRequest());
     }
     return(new ObjectResult(_booksbusiness.Update(book)));
     //return Ok();
 }
Ejemplo n.º 2
0
        public IActionResult Put([FromBody] BookVO bookVO)
        {
            if (bookVO == null)
            {
                return(NotFound());
            }

            return(Ok(_bookBusiness.Update(bookVO)));
        }
Ejemplo n.º 3
0
 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));
        }