Beispiel #1
0
 public static FilterInfoList FilterFetchInfoList(string target)
 {
     return(FilterService.FilterFetchInfoList(
                new FilterCriteria
     {
         Target = target,
         CreatedBy = BusinessPrincipal.GetCurrentIdentity().UserId
     }));
 }
Beispiel #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);
        }
Beispiel #3
0
 public static bool FilterDelete(int filterId)
 {
     return(FilterService.FilterDelete(
                FilterService.FilterFetch(filterId)));
 }
Beispiel #4
0
 public static FilterInfoList FilterFetchInfoList()
 {
     return(FilterService.FilterFetchInfoList(
                new FilterCriteria()));
 }