public BooksVO Update(BooksVO books)
        {
            var booksEntity = _converter.Parse(books);

            booksEntity = _repository.Update(booksEntity);
            return(_converter.Parse(booksEntity));
        }
Ejemplo n.º 2
0
        public BooksVO Create(BooksVO book)
        {
            var bookEntity = _converter.Parse(book);

            bookEntity = _repository.Create(bookEntity);
            return(_converter.Parse(bookEntity));
        }
Ejemplo n.º 3
0
 public IActionResult Put([FromBody] BooksVO books)
 {
     if (books == null)
     {
         return(BadRequest());
     }
     return(Ok(_booksBusiness.Update(books)));
 }
Ejemplo n.º 4
0
 public IActionResult Put([FromBody] BooksVO books)
 {
     if (books != null)
     {
         return(Ok(_booksRepository.Update(books)));
     }
     else
     {
         return(BadRequest("Nullable object"));
     }
 }
        public BooksVO Create(BooksVO books)
        {
            var booksEntity = _converter.Parse(books);

            return(_converter.Parse(_booksRepository.Create(booksEntity)));
        }