Cleanup .cshtml issues

This commit is contained in:
2023-03-09 20:58:27 +01:00
parent d514a639a9
commit 8c58cfa1e4
7 changed files with 190 additions and 183 deletions

View File

@ -40,10 +40,13 @@ namespace WGneu.Documents {
public DateTime Date { get; set; }
private async Task<string> Render() {
string name;
if (this is BusinessLetter) {
return await Html.CompileRenderAsync("BusinessLetter.cshtml", this);
name = "BusinessLetter";
} else {
throw new InvalidOperationException();
}
throw new InvalidOperationException();
return await Html.CompileRenderAsync(name, this);
}
public async Task Generate() {