Razor Templates

This commit is contained in:
2023-03-08 01:29:57 +01:00
parent 78d2dc06d0
commit afef650b26
11 changed files with 355 additions and 278 deletions

View File

@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WGneu.Models;
namespace WGneu.Documents {
public class BusinessDocument : Document {
public BusinessDocument(string title, Member m) : base(title) {
Member = m;
}
public Member Member { get; set; }
public string Address {
get {
// TODO Name/Rechnungsadresse
return $"{Member.GivenName} {Member.FamilyName}\n{Member.Address}";
}
}
}
}