Created
January 6, 2019 07:17
-
-
Save xgeek-net/63164119b8431323d4576645820f7428 to your computer and use it in GitHub Desktop.
SampleAuraController.cls Apex Server-side
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 with sharing class SampleAuraController { | |
@AuraEnabled | |
public static Account findAccounts(String accountId) { | |
List<Account> accounts = [SELECT Id, Name FROM Account WHERE Id = :accountId]; | |
if(accounts.isEmpty()) return null; | |
return accounts[0]; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment