public BooksVO Update(BooksVO books) { var booksEntity = _converter.Parse(books); booksEntity = _repository.Update(booksEntity); return(_converter.Parse(booksEntity)); }
public BooksVO Create(BooksVO book) { var bookEntity = _converter.Parse(book); bookEntity = _repository.Create(bookEntity); return(_converter.Parse(bookEntity)); }
public IActionResult Put([FromBody] BooksVO books) { if (books == null) { return(BadRequest()); } return(Ok(_booksBusiness.Update(books))); }
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))); }