1
2
3
4
5
6
7
8
9
10
11
public with sharing class LexInventoryHeaderController {
    
    @AuraEnabled
    public static LostReport__c init(String recordId){
            List<LostReport__c> lpList = [SELECT Id, Asset__c from LostReport__c WHERE Id = :recordId];
            if(lpList.size()>0){
                return lpList[0];
            }
        return null;
    }
}