public async Task RemoveAccountAsync(AmoAccountAuth account) { using var scope = scopeFactory.CreateScope(); var db = scope.ServiceProvider.GetRequiredService <IAccountRepo>(); await db.RemoveAmoAccount(await db.GetAmoAccountById(account.id)); }
public async Task RemoveAccountAsync(AmoAccountAuth account) { using var scope = scopeFactory.CreateScope(); var db = scope.ServiceProvider.GetRequiredService <IAccountRepo>(); await db.RemoveAmoAccount(await db.GetAmoAccountById(account.id)); }