Using Html/Pdf Initializer

This commit is contained in:
2023-03-08 23:25:01 +01:00
parent 30c4eea7b7
commit a55678e5ef
8 changed files with 72 additions and 33 deletions

View File

@ -31,7 +31,7 @@ namespace WGneu.Documents {
private async Task<string> Render() {
if (this is BusinessLetter bl) {
return await Pdf.CompileRenderAsync("BusinessLetter.cshtml", bl);
return await Html.CompileRenderAsync("BusinessLetter", bl);
}
throw new InvalidOperationException();
}