Last active
April 3, 2019 10:31
-
-
Save sfmishra/bfb7419a6045ea51e8971e748de4efe4 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 searchContactController { | |
@auraEnabled | |
public static List<Contact> queryContact(String searchTxt) { | |
String queryStr = 'SELECT Id, Name FROM Contact WHERE NAME Like \'%' + searchTxt + '%\''; | |
return Database.query(queryStr); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment