public static IEnumerable <string> Save(IEnumerable <string> ips, int tenant)
        {
            var restrictions = IPRestrictionsRepository.Save(ips, tenant);

            cache.Insert(GetCacheKey(tenant), IPRestrictionsRepository.Get(tenant), cacheExpiration);

            return(restrictions);
        }
        public static IEnumerable <string> Save(IEnumerable <string> ips, int tenant)
        {
            var restrictions = IPRestrictionsRepository.Save(ips, tenant);

            notify.Publish(new IPRestriction {
                TenantId = tenant
            }, CacheNotifyAction.InsertOrUpdate);
            return(restrictions);
        }