Sample Code:
List<Account> accList = New List<Account>(); accList = [SELECT Id FROM Account WHERE IsDeleted =: true ALL ROWS]; Undelete accList;
Sample Code:
List<Account> accList = New List<Account>(); accList = [SELECT Id FROM Account WHERE IsDeleted =: true ALL ROWS]; Undelete accList;