public Books AddBookToDataBase(BooksEditModel editModel)
        {
            var book = new Books()
            {
                NameBook      = editModel.NameBook,
                IdTheme       = editModel.ThemeId,
                IdAuthor      = editModel.AuthorId,
                Pages         = editModel.Pages,
                Price         = editModel.Price,
                DateOfPublish = DateTime.Now,
            };

            _dataManager.BookRepository.AddBook(book);

            return(book);
        }
        public IActionResult Create(BooksEditModel book)
        {
            _servicesManager.BooksService.AddBookToDataBase(book);

            return(RedirectPermanent("/home/index"));
        }