public async Task <Alias> Add(Alias item) { var entry = await _context.Aliases.AddAsync(item) .ConfigureAwait(false); await _context.SaveChangesAsync() .ConfigureAwait(false); return(entry.Entity); }
public async Task <MailDomain> Add(MailDomain item) { var entry = await _context.Domains.AddAsync(item) .ConfigureAwait(false); await _context.SaveChangesAsync() .ConfigureAwait(false); return(entry.Entity); }