@@ -9,10 +9,10 @@ namespace DocuSign.CodeExamples.Rooms.Controllers
99 using DocuSign . CodeExamples . Models ;
1010 using DocuSign . CodeExamples . Rooms . Models ;
1111 using DocuSign . Rooms . Client ;
12- using DocuSign . Rooms . Examples ;
1312 using DocuSign . Rooms . Model ;
1413 using Microsoft . AspNetCore . Mvc ;
15- using Newtonsoft . Json ;
14+ using System ;
15+ using System . Collections . Generic ;
1616
1717 [ Area ( "Rooms" ) ]
1818 [ Route ( "Reg006" ) ]
@@ -112,18 +112,19 @@ public ActionResult ExportData(RoomDocumentModel roomDocumentModel)
112112
113113 try
114114 {
115+ var formIds = new List < Guid ? > { roomDocumentModel . DocumentId } ;
115116 // Call the Rooms API to create external form fill session
116- var url = DocuSign . Rooms . Examples . CreateExternalFormFillSession . CreateSession ( basePath ,
117+ var externalFormFillSession = DocuSign . Rooms . Examples . CreateExternalFormFillSession . CreateSession ( basePath ,
117118 accessToken ,
118119 accountId ,
119- new ExternalFormFillSessionForCreate ( roomDocumentModel . DocumentId . ToString ( ) ,
120- roomDocumentModel . RoomId ) ) ;
120+ new ExternalFormFillSessionForCreate ( null , roomDocumentModel . RoomId , formIds , "https://localhost:44333" ) ) ;
121121
122122 this . ViewBag . h1 = this . CodeExampleText . ExampleName ;
123- this . ViewBag . message = string . Format ( this . CodeExampleText . ResultsPageText , url . Url ) ;
124- this . ViewBag . Locals . Json = JsonConvert . SerializeObject ( url , Formatting . Indented ) ;
123+ this . ViewBag . message = this . CodeExampleText . ResultsPageText ;
124+ this . ViewBag . Url = externalFormFillSession . Url ;
125+ this . ViewBag . JsonUrl = externalFormFillSession . ToJson ( ) ;
125126
126- return this . View ( "example_done " ) ;
127+ return this . View ( "embed " ) ;
127128 }
128129 catch ( ApiException apiException )
129130 {
0 commit comments