public async Task <string> RunCompileTemplate(AboutTemplateViewModel model) { var template = await _template; var html = RazorEngineService.Value.RunCompile(template, template, typeof(AboutTemplateViewModel), model); return(html); }
public async Task <string> RunCompileTemplate(AboutTemplateViewModel model) { var template = await _template; var html = await RazorEngineService.Value.CompileRenderStringAsync("about", template, model); return(html); }