-
Notifications
You must be signed in to change notification settings - Fork 12
/
PrefillTextFields.cs
25 lines (24 loc) · 1.01 KB
/
PrefillTextFields.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using System.Collections.Generic;
using System.Threading.Tasks;
using SignNow.Net.Model;
using SignNow.Net.Model.EditFields;
namespace SignNow.Net.Examples.Documents
{
public static partial class DocumentExamples
{
/// <summary>
/// Adds values to fields that the Signers can later edit when they receive the document for signature.
/// Works only with Text field types.
/// </summary>
/// <param name="documentId">Identity of the document to prefill values for.</param>
/// <param name="fields">Collection of the <see cref="TextField">fields</see></param>
/// <param name="signNowContext">signNow container with services.</param>
/// <returns></returns>
public static async Task PrefillTextFields(string documentId, IEnumerable<TextField> fields, SignNowContext signNowContext)
{
await signNowContext.Documents
.PrefillTextFieldsAsync(documentId, fields)
.ConfigureAwait(false);
}
}
}