public async Task <IActionResult> SearchIcons([FromBody] ExploreQuery Query)
        {
            string query = Query.query;
            int    count = Query.count;
            int    skip  = count * Query.next;


            if (!string.IsNullOrEmpty(query))
            {
                var explore = await _exploreRepository.ExploreIconsAsync(query, count, skip);

                return(Json(explore));
            }



            var top = await _exploreRepository.GetAllActuallYTAsync();

            var topImg = await _exploreRepository.GetAllActuallIMGAsync();

            if (top.Count > 0)
            {
                top.AddRange(topImg);
            }
            top = top.Skip(skip).Take(count).ToList();
            //var results = new ExploreResultsDto(top, 6, 1);
            return(Json(top));
        }
        public async Task <IActionResult> GetFollowedFolders([FromBody] ExploreQuery Query)
        {
            string folderId = Query.folderId;

            if (!string.IsNullOrEmpty(folderId))
            {
                var folderContent = await _exploreRepository.GetIconsForFolder(folderId);

                return(Json(folderContent));
            }

            var icons = await _desktopRepository.GetFollowedFoldersForUserAsync(this.UserId);

            return(Json(icons));
        }
        public async Task <IActionResult> SharedFolders([FromBody] ExploreQuery Query)
        {
            string folderId   = Query.folderId;
            string userFolder = Query.userFolder;

            if (!string.IsNullOrEmpty(folderId))
            {
                var folderContent = await _exploreRepository.GetIconsForFolder(folderId);

                return(Json(folderContent));
            }

            int    count   = Query.count;
            int    skip    = count * Query.next;
            string query   = Query.query;
            var    folders = await _exploreRepository.GetAllSharedFoldersAsync(query, skip, count, userFolder);

            //var results = new ExploreResultsDto(folders, folders.Count);
            return(Json(folders));
        }