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