Using Html/Pdf Initializer
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user