public IViewComponentResult Invoke()
        {
            var result = _categoryImageService.GetAll();

            if (result.Success)
            {
                var data = result.Data.Where(x => x.IsActive).ToList();
                return(View(data));
            }

            return(View());
        }
        public IActionResult Index()
        {
            AdminIndexViewModel model = new AdminIndexViewModel
            {
                CategoryCount = _categoryImageService.GetAll().Data.Count,
                GalleryCount  = _galleryService.GetAll().Data.Count,
                PageCount     = _pageService.GetAll().Data.Count,
                SlideCount    = _sliderService.GetAll().Data.Count,
                SocialCount   = _socialService.GetAll().Data.Count
            };

            return(View(model));
        }