if (bindingResult.hasErrors()) {
return mov;
}
BookBuilder bookBuilder = new BookBuilder();
bookBuilder.title(manageBookForm.getTitle()).description(manageBookForm.getDescription())
.price(manageBookForm.getPrice().toString()).author(manageBookForm.getAuthor())
.year(manageBookForm.getYear()).category(manageBookForm.getCategory());
Book book = bookBuilder.build(true);
bookstoreService.addBook(book);
manageBookForm.clear();
mov.addObject("actionSuccess", "book");