Esempio n. 1
0
 public Task <ServiceStandardResponse <EmailTemplateInformation> > GetTemplateAsync(string templateName)
 {
     return(ServiceCaller.GetAsync <EmailTemplateInformation>(EndPoints.GetTemplate + getAppendtemplate(templateName)).ContinueWith(x => new ServiceStandardResponse <EmailTemplateInformation>(x.Result)));
 }
Esempio n. 2
0
 public Task <ServiceStandardResponse <List <EmailTemplateInformation> > > GetAllTemplatesAsync()
 {
     return(ServiceCaller.GetAsync <List <EmailTemplateInformation> >(EndPoints.GetAllTemplates).ContinueWith(x => new ServiceStandardResponse <List <EmailTemplateInformation> >(x.Result)));
 }
Esempio n. 3
0
        public async Task <ServiceStandardResponse <bool> > TemplateExists(string templateName)
        {
            var result = await ServiceCaller.GetAsync <bool>(EndPoints.TemplateExists + getAppendtemplate(templateName));

            return(new ServiceStandardResponse <bool>(result));
        }