Cleanup .cshtml issues
This commit is contained in:
@ -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() {
|
||||
|
Reference in New Issue
Block a user