public async Task AddAsync(EmailMessage emailMessage)
        {
            await _context.EmailMessages.AddAsync(emailMessage);

            await _context.SaveChangesAsync();

            Console.WriteLine(emailMessage.Subject);
        }
示例#2
0
        public async Task AddAsync(EmailMessage emailMessage)
        {
            await _context.EmailMessages.AddAsync(emailMessage);

            await _context.SaveChangesAsync();
        }
示例#3
0
        public async Task AddAsync(User user)
        {
            await _context.Users.AddAsync(user);

            await _context.SaveChangesAsync();
        }
示例#4
0
        public async Task AddAsync(Atachment atachment)
        {
            await _context.Atachments.AddAsync(atachment);

            await _context.SaveChangesAsync();
        }
示例#5
0
 public async Task UpdateAsync(Smtp smtp)
 {
     _context.Smtp.Update(smtp);
     await _context.SaveChangesAsync();
 }
示例#6
0
 public async Task UpdateAsync(Imap imap)
 {
     _context.Imaps.Update(imap);
     await _context.SaveChangesAsync();
 }
        public async Task AddAsync(SendedEmailMessage sendedEmailMessage)
        {
            await _context.SendedEmailMessages.AddAsync(sendedEmailMessage);

            await _context.SaveChangesAsync();
        }
        public async Task AddAsync(SendedAtachment sendedAtachment)
        {
            await _context.AddAsync(sendedAtachment);

            await _context.SaveChangesAsync();
        }
 public async Task DeleteAsync(T T)
 {
     _entities.Remove(T);
     await _context.SaveChangesAsync();
 }
        public async Task AddAsync(EmailAccount emailAccount)
        {
            await _context.EmailAccounts.AddAsync(emailAccount);

            await _context.SaveChangesAsync();
        }