예제 #1
0
        public async Task <string> RunCompileTemplate(AboutTemplateViewModel model)
        {
            var template = await _template;
            var html     = RazorEngineService.Value.RunCompile(template, template, typeof(AboutTemplateViewModel), model);

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

            return(html);
        }