FetchFilter() static private method

static private FetchFilter ( FilterData data ) : Filter
data FilterData
return Filter
Beispiel #1
0
 public static Filter FilterFetch(int filterId)
 {
     return(Filter.FetchFilter(
                new FilterDataCriteria
     {
         FilterId = filterId
     }));
 }
Beispiel #2
0
        internal static void DeleteFilter(FilterCriteria criteria)
        {
            var filter = Filter.FetchFilter(criteria);

            if (!Filter.CanDeleteObject(filter))
            {
                throw new SecurityException("Only the creator of the filter or users with full control can delete this filter");
            }

            Csla.DataPortal.Delete <Filter>(criteria);
        }