예제 #1
0
        public void AddMailAccounts(List <MailAccountEntity> accounts)
        {
            _db.MailAccounts.AddRange(accounts);
            _db.SaveChanges();

            MailAccounts.Clear();
            MailAccounts.AddRange(_db.MailAccounts.ToList());
        }
예제 #2
0
        // IDisposable
        public void Dispose()
        {
            Users.Clear();
            MailAccounts.Clear();
            ApiKeys.Clear();

            WebConfig         = null;
            EncryptionService = null;
        }