public function indexAction($record_id1, $record_id2, $action = 'write')
 {
     if (!$this->fileHelper->hasDocuments($record_id1)) {
         throw new DocumentNotFoundException("Record for id " . $record_id1 . " not available!!");
     }
     if (!$this->fileHelper->hasDocuments($record_id2)) {
         throw new DocumentNotFoundException("Record for id " . $record_id2 . " not available!!");
     }
     return view('app.index')->with('action', $action);
 }
 public function getPaginationAction(Request $request, $recordId)
 {
     return response()->json(['status' => 'Ok', 'pagination' => ['total_documents' => $this->fileHelper->getTotaliFilesInFolder($recordId)]]);
 }