public async Task RenderAsync(ViewContext context) { await Task.Run(async() => { var viewData = context.ViewData; await context.Writer.WriteAsync(await _renderer.Render(Path, context.ViewData.Model)); }); }
public async Task <string> RenderViewWithDataAsync(string view, object viewData) { return(await _renderer.Render(view, viewData)); }