Skip to content

Commit 0cee850

Browse files
authored
Merge pull request #115 from docusign/DEVDOCS-9657
DEVDOCS-9657 - updates to Rooms 6 how-to
2 parents f199204 + 251cb75 commit 0cee850

File tree

6 files changed

+361
-349
lines changed

6 files changed

+361
-349
lines changed

launcher-csharp.sln

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
1414
.editorconfig = .editorconfig
1515
EndProjectSection
1616
EndProject
17-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "launcher-csharp.Tests", "launcher-csharp.Tests\launcher-csharp.Tests.csproj", "{431C1520-FA9A-4B94-8E41-758EB90B8CC4}"
17+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "launcher-csharp.Tests", "launcher-csharp.Tests\launcher-csharp.Tests.csproj", "{431C1520-FA9A-4B94-8E41-758EB90B8CC4}"
1818
EndProject
1919
Global
2020
GlobalSection(SolutionConfigurationPlatforms) = preSolution

launcher-csharp/Rooms/Controllers/CreateExternalFormFillSession.cs

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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
{
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<h2>@ViewBag.h1</h2>
2+
<p>@Html.Raw(ViewBag.message)</p>
3+
<code>
4+
@ViewBag.JsonUrl
5+
</code>
6+
<iframe width="1500" height="800" src="@ViewBag.Url">
7+
8+
</iframe>
9+
10+
11+
<p><a href="/">@Html.Raw(ViewBag.SupportingTexts.ContinueButton)</a></p>

launcher-csharp/launcher-csharp.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<PackageReference Include="DocuSign.Click" Version="1.2.2" />
4141
<PackageReference Include="DocuSign.eSign.dll" Version="6.0.0" />
4242
<PackageReference Include="DocuSign.Monitor" Version="1.1.0" />
43-
<PackageReference Include="DocuSign.Rooms" Version="1.1.0" />
43+
<PackageReference Include="DocuSign.Rooms" Version="1.3.0" />
4444
<PackageReference Include="Microsoft.AspNetCore.Session" Version="2.2.0" />
4545
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="3.1.0-preview1.19506.2" />
4646
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="3.1.0-preview1.19506.2">

0 commit comments

Comments
 (0)