Skip to content

Commit 8b21a2e

Browse files
committed
renamed the methods
1 parent 6127121 commit 8b21a2e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

launcher-csharp/WebForms/Controllers/CreateAndEmbedForm.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public CreateAndEmbedForm(
4242
[SetViewBag]
4343
[HttpPost]
4444
[ValidateAntiForgeryToken]
45-
public ActionResult CheckTheTemplates()
45+
public ActionResult CheckTemplates()
4646
{
4747
string basePath = this.RequestItemsService.Session.BasePath + "/restapi";
4848
string accessToken = this.RequestItemsService.User.AccessToken;
@@ -51,7 +51,7 @@ public ActionResult CheckTheTemplates()
5151
var docuSignClient = new DocuSignClient(basePath);
5252
docuSignClient.Configuration.DefaultHeader.Add("Authorization", "Bearer " + accessToken);
5353

54-
List<EnvelopeTemplate> templates = CreateAndEmbedFormService.CheckIfTemplateExists(
54+
List<EnvelopeTemplate> templates = CreateAndEmbedFormService.GetTemplatesByName(
5555
docuSignClient,
5656
accountId,
5757
TemplateName);

launcher-csharp/WebForms/Examples/CreateAndEmbedFormService.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public static WebFormInstance CreateInstance(
6262
return formManagementApi.CreateInstance(accountId, formId, options);
6363
}
6464

65-
public static List<EnvelopeTemplate> CheckIfTemplateExists(
65+
public static List<EnvelopeTemplate> GetTemplatesByName(
6666
DocuSignClient docuSignClient,
6767
string accountId,
6868
string templateName)
@@ -84,14 +84,14 @@ public static TemplateSummary CreateTemplate(
8484
{
8585
TemplatesApi templatesApi = new TemplatesApi(docuSignClient);
8686

87-
EnvelopeTemplate templateReqObject = MakeTemplate(templateName, documentPdf);
87+
EnvelopeTemplate templateReqObject = PrepareEnvelopeTemplate(templateName, documentPdf);
8888

8989
TemplateSummary template = templatesApi.CreateTemplate(accountId, templateReqObject);
9090

9191
return template;
9292
}
9393

94-
public static EnvelopeTemplate MakeTemplate(string resultsTemplateName, string documentPdf)
94+
public static EnvelopeTemplate PrepareEnvelopeTemplate(string resultsTemplateName, string documentPdf)
9595
{
9696
Document document = new Document()
9797
{

0 commit comments

Comments
 (0)