-
Notifications
You must be signed in to change notification settings - Fork 12
/
EditDocumentTextFields.cs
27 lines (26 loc) · 1.12 KB
/
EditDocumentTextFields.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
26
27
using System.Collections.Generic;
using System.Threading.Tasks;
using SignNow.Net.Interfaces;
using SignNow.Net.Model;
using SignNow.Net.Model.EditFields;
using SignNow.Net.Model.Responses;
namespace SignNow.Net.Examples.Documents
{
// public class EditDocumentTextFields
public static partial class DocumentExamples
{
/// <summary>
/// Updates a document by adding/overwriting fields or elements (texts, checks, signatures, hyperlinks, attachments)
/// </summary>
/// <param name="documentId">Identity of the document to add/edit fields for.</param>
/// <param name="fields">Collection of the <see cref="IFieldEditable">fields</see></param>
/// <param name="signNowContext">signNow container with services.</param>
/// <returns></returns>
public static async Task<EditDocumentResponse> EditDocumentTextFields(string documentId, IEnumerable<IFieldEditable> fields, SignNowContext signNowContext)
{
return await signNowContext.Documents
.EditDocumentAsync(documentId, fields)
.ConfigureAwait(false);
}
}
}