Skip to content

Commit

Permalink
Apex Controller for ContactList Component added
Browse files Browse the repository at this point in the history
  • Loading branch information
Rahul Malhotra committed Jan 26, 2018
1 parent 44c1afa commit 8140b64
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/classes/ContactListController.cls
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
public class ContactListController {

@AuraEnabled
public static List<Contact> getContactList(List<Id> accountIds) {
List<Contact> contactList = [SELECT Id, Name, Email, Phone, AccountId FROM Contact WHERE AccountId in :accountIds];
return contactList;
}
}

0 comments on commit 8140b64

Please sign in to comment.