Created
May 3, 2015 17:05
-
-
Save keirbowden/9d03c510be1ede37eca4 to your computer and use it in GitHub Desktop.
Apex Controller for the Case Render App
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 CasesController { | |
@AuraEnabled | |
public static List<Case> GetRecentCases() | |
{ | |
List<Case> cases=[select id, CaseNumber, Subject, CreatedDate, Status, Priority | |
from Case | |
order by CreatedDate desc | |
limit 5]; | |
return cases; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment