public void Delete(int id)
        {
            var books = _ebookManager.GetByCategory(id);

            foreach (var book in books)
            {
                _ebookManager.Delete(book.EbookId);
            }
            _categoryProvider.Delete(id);
        }