Esempio n. 1
0
        private static IEnumerable <RegistrationInformation> GetRegistrationInformation(UserFinderFilter filter)
        {
            var criteria = filter.GetCriteria();

            filter.ApplySort(criteria);

            return(ArHelper.WithSession(
                       s => criteria.GetExecutableCriteria(s).ToList <RegistrationInformation>())
                   .ToList());
        }
        public void BaseTest()
        {
            var filter = new UserFinderFilter();

            filter.FinderType  = RegistrationFinderType.Addresses;
            filter.ExcludeType = ExcludesTypes.Hidden;
            var criteria = filter.GetCriteria();

            filter.ApplySort(criteria);
            var client = ArHelper.WithSession(s => criteria.GetExecutableCriteria(s).ToList <RegistrationInformation>()).ToList();
        }