Created
March 18, 2019 22:39
-
-
Save ketan-benegal/6d50ab3a62e52d327f088664093b02d1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ContactController { | |
public List<Contact> contactList {get;set;} | |
public ContactController(){ | |
this.contactList = new List<Contact>(); | |
} | |
@AuraEnabled(cacheable=true) | |
public static list<Contact> getContacts(string searchKey){ | |
List<Contact> lst = new List<Contact>([SELECT Id, Name, Title, Phone, Email FROM Contact WHERE Accountid = :searchKey ]); | |
return lst; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment