Beispiel #1
0
        private void  NeedIgnoreAddress()
        {
            _NeedIgnoreAddress = new List <string>();
            List <Account> visibleTypeNone = _AccountDal.GetAllAccount();

            foreach (Account account in visibleTypeNone)
            {
                if (account.AccountType == VisibleType.None || !account.IsAcceptEmail)
                {
                    if (!string.IsNullOrEmpty(account.Email1))
                    {
                        _NeedIgnoreAddress.Add(account.Email1);
                    }
                    if (!string.IsNullOrEmpty(account.Email2))
                    {
                        _NeedIgnoreAddress.Add(account.Email2);
                    }
                }
            }
        }