Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Try to find template.
- var found = engine.TemplateCache.RetrieveTemplate("TEMPLATE_KEY");
- if (found.Success)
- {
- // If template exists render template
- return await engine.RenderTemplateAsync(found.Template.TemplatePageFactory(), order);
- }
Add Comment
Please, Sign In to add comment