Skip to content

Instantly share code, notes, and snippets.

@malinda-absi
malinda-absi / AccountController.apxc
Created February 24, 2016 11:25
Salesforce Lightning Custom Components with Bootstrap
public with sharing class AccountController {
@AuraEnabled
public static List<Account> findAll() {
return [SELECT id, Name, AccountNumber, Fax,Industry,Type FROM Account LIMIT 10];
}
}
@malinda-absi
malinda-absi / MovieController.apxc
Last active October 12, 2017 07:59
Salesforce Lightning Components with Lightning Design System Demo
public with sharing class MovieController {
@AuraEnabled
public static List<absi_dev__Movie__c> getAllMovies() {
return [SELECT Id, Name, absi_dev__description__c, absi_dev__category__c, absi_dev__imageUrl__c, absi_dev__ratings__c FROM absi_dev__Movie__c LIMIT 10];
}
@AuraEnabled
public static List<absi_dev__Movie__c> searchByName(String searchKey) {