예제 #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()));
 }