Пример #1
0
        public override MembershipUserCollection FindUsersByEmail(string emailToMatch, int pageIndex, int pageSize,
                                                                  out int totalRecords)
        {
            emailToMatch = emailToMatch.Replace('*', '%');
            emailToMatch = emailToMatch.Replace('?', '_');
            List <SystemUserWrapper> users = SystemUserWrapper.FindUsersByEmail(emailToMatch, pageIndex, pageSize,
                                                                                out totalRecords);
            var mc = new MembershipUserCollection();

            foreach (SystemUserWrapper systemUser in users)
            {
                mc.Add(systemUser.ToMembershipUser(Name));
            }
            return(mc);
        }