Пример #1
0
 public static FilterInfoList FilterFetchInfoList(string target)
 {
     return(FilterService.FilterFetchInfoList(
                new FilterCriteria
     {
         Target = target,
         CreatedBy = BusinessPrincipal.GetCurrentIdentity().UserId
     }));
 }
Пример #2
0
        public static Filter FilterSave(Filter filter)
        {
            if (!filter.IsValid)
            {
                return(filter);
            }

            Filter result;

            if (filter.IsNew)
            {
                result = FilterService.FilterInsert(filter);
            }
            else
            {
                result = FilterService.FilterUpdate(filter);
            }

            return(result);
        }
Пример #3
0
 public static bool FilterDelete(int filterId)
 {
     return(FilterService.FilterDelete(
                FilterService.FilterFetch(filterId)));
 }
Пример #4
0
 public static FilterInfoList FilterFetchInfoList()
 {
     return(FilterService.FilterFetchInfoList(
                new FilterCriteria()));
 }