public dynamic GetAllSubCategoryListWithPrefrence(JObject Obj)
        {
            SubIndustryListFilters filter = Obj.ToObject <SubIndustryListFilters>();
            int            total          = 0;
            SubIndustryVal re             = new SubIndustryVal();

            var prefrence = _prefenceService.GetPreference(filter.currentUserId);

            re.SubIndustryData = _adminService.GetAllSubCategoryList(filter.limit, filter.offset, filter.order, filter.sort, filter.Preference, filter.IndustryId, filter.UserType, out total);
            foreach (var item in re.SubIndustryData)
            {
                foreach (var pref in prefrence)
                {
                    if (item.SubIndustryName == pref.Preference)
                    {
                        item.Preference = true;
                    }
                }
            }
            var result = new
            {
                total = total,
                rows  = re.SubIndustryData,
            };

            return(result);
        }
        public dynamic GetAllSubCategoryList(JObject Obj)
        {
            SubIndustryListFilters filter = Obj.ToObject <SubIndustryListFilters>();
            int            total          = 0;
            SubIndustryVal re             = new SubIndustryVal();

            re.SubIndustryData = _adminService.GetAllSubCategoryList(filter.limit, filter.offset, filter.order, filter.sort, filter.subIndustry, filter.IndustryId, filter.UserType, out total);
            var result = new
            {
                total = total,
                rows  = re.SubIndustryData,
            };

            return(result);
        }