Esempio n. 1
0
 /// <summary>
 /// Updates the specified PDF template.
 /// </summary>
 /// <param name="id"></param>
 /// <param name="pdfTemplateOptions"></param>
 /// <returns></returns>
 public async Task <PdfTemplate> UpdateTemplateAsync(Guid id, PdfTemplateOptions pdfTemplateOptions)
 {
     return(await PutAsync <PdfTemplate>($"{Urls.Admin}/template/{id}", pdfTemplateOptions));
 }
Esempio n. 2
0
 /// <summary>
 /// Creates a new PDF template.
 /// </summary>
 /// <returns></returns>
 public async Task <PdfTemplate> CreateTemplateAsync(PdfTemplateOptions pdfTemplateOptions)
 {
     return(await PostAsync <PdfTemplate>($"{Urls.Admin}/template", pdfTemplateOptions));
 }
Esempio n. 3
0
 /// <summary>
 /// Updates the specified PDF template.
 /// </summary>
 /// <param name="id"></param>
 /// <param name="pdfTemplateOptions"></param>
 /// <returns></returns>
 public PdfTemplate UpdateTemplate(Guid id, PdfTemplateOptions pdfTemplateOptions)
 {
     return(Put <PdfTemplate>($"{Urls.Admin}/template/{id}", pdfTemplateOptions));
 }
Esempio n. 4
0
 /// <summary>
 /// Creates a new PDF template.
 /// </summary>
 /// <returns></returns>
 public PdfTemplate CreateTemplate(PdfTemplateOptions pdfTemplateOptions)
 {
     return(Post <PdfTemplate>($"{Urls.Admin}/template", pdfTemplateOptions));
 }