How to do DML when using Lightning Web Component for Quick Action in Salesforce?
Sample Code: Apex Class: public with sharing class AccountController { @AuraEnabled public static String createAttachment( Id accountId ) { String result = 'Success'; try { Attachment a = new Attachment(); ....