public async Task <IEnumerable <ExportTemplate> > SearchExportTemplate(List <string> lst, List <string> includeLst = null) { using (var ctx = new ExportTemplateService()) { return(await ctx.GetExportTemplatesByExpressionLst(lst, includeLst).ConfigureAwait(false)); } }
public async Task SaveExportTemplate(ExportTemplate i) { if (i == null) { return; } using (var ctx = new ExportTemplateService()) { await ctx.UpdateExportTemplate(i).ConfigureAwait(false); } }