public JsonResult SetProfileGroupSortWeight(List <GuidSortWeightTuple> profileGroupSortWeight)
        {
            var model = new SetSortIndexResultViewModel();

            if (profileGroupSortWeight == null || profileGroupSortWeight.Any(d => d.Id == Guid.Empty))
            {
                model.IndexSet = false;
            }
            else
            {
                var paramdata = profileGroupSortWeight.Select(i => new Tuple <Guid, int>(i.Id, i.SortWeight)).ToList();
                _profileGroupRepository.SetProfileGroupSortWeight(paramdata);
            }
            return(Json(model));
        }
 public void SetProfileGroupSortWeight(IList <Tuple <Guid, int> > profileGroupTuples)
 {
     _internalRepository.SetProfileGroupSortWeight(profileGroupTuples);
     _lazyCache.ClearProfileGroups();
 }