public static JsonResponse ResetCounters(string filterName) { if (!Security.IsAuthorizedTo(Rights.AccessAdminSettingsPages)) { return(new JsonResponse { Success = false, Message = Resources.labels.notAuthorized }); } return(JsonCustomFilterList.ResetCounters(filterName)); }
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); }