
    // with lwc lexNoReportApplication
    //author  kkbes
public  class LexNoReportApplicationController {
    @AuraEnabled
    public static OPDPlan__c initGetOpdData(String recordId){
        OPDPlan__c res = new OPDPlan__c();
        try {
            OPDPlan__c report = [select Id,Name,Status__c from OPDPlan__c where Id = :recordId];
            res=report;
        } catch (Exception e) {
            System.debug(LoggingLevel.INFO, '*** e: ' + e);
        }
        return res;
    }

    @AuraEnabled
    public static String  getProfileIdByName(String Name){
        Profile profile = null;
        try {
            profile = [select Id from Profile where Name =:name];
        } catch (Exception e) {
            throw new AuraHandledException(e.getMessage());
        }
        return profile.Id;

    }
}