public static Filter FilterFetch(int filterId) { return(Filter.FetchFilter( new FilterDataCriteria { FilterId = filterId })); }
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); }