public ViewModel.Book ChangeBook(ViewModel.Book newBook)
        {
            var book = repository.ChangeBook(mapper.Map <ViewModel.Book, data.Entities.Book>(newBook));

            return(mapper.Map <ViewModel.Book>(book));
        }
        public ViewModel.Book AddBookInCategory(ViewModel.Book newBook)
        {
            var book = repository.AddBookInCategory(mapper.Map <ViewModel.Book, data.Entities.Book>(newBook));

            return(mapper.Map <ViewModel.Book>(book));
        }