示例#1
0
 public static JsonResponse ResetCounters(string filterName)
 {
     if (!Security.IsAuthorizedTo(Rights.AccessAdminSettingsPages))
     {
         return(new JsonResponse {
             Success = false, Message = Resources.labels.notAuthorized
         });
     }
     return(JsonCustomFilterList.ResetCounters(filterName));
 }
示例#2
0
        public static List <JsonCustomFilter> GetCustomFilters()
        {
            if (!Security.IsAuthorizedTo(Rights.AccessAdminSettingsPages))
            {
                return(new List <JsonCustomFilter>());
            }

            var customFilters = JsonCustomFilterList.GetCustomFilters();

            customFilters.Sort((f1, f2) => string.Compare(f1.Name, f2.Name));

            return(customFilters);
        }