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

            return(Ok(_bookBusiness.Update(bookVO)));
        }
예제 #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));
        }