コード例 #1
0
        public bool AreOrganizationsSupportedForUser(User user)
        {
            var email = user.ToMailAddress();

            return
                (DiscontinuedForDomains.Contains(email.Host, StringComparer.OrdinalIgnoreCase) ||
                 DiscontinuedForEmailAddresses.Contains(email.Address));
        }
        public bool IsUserOnWhitelist(User user)
        {
            if (user == null)
            {
                return(false);
            }

            var email = user.ToMailAddress();

            return
                (DiscontinuedForDomains.Contains(email.Host) ||
                 DiscontinuedForEmailAddresses.Contains(email.Address));
        }