Kapitel 7 abgeschlossen.
This commit is contained in:
@@ -19,6 +19,8 @@ public class Contact
|
||||
public Guid Id { get; set; } = Guid.NewGuid();
|
||||
public string Name { get; set; } = "";
|
||||
public string Relation { get; set; } = "";
|
||||
/// <summary>Vollständige Anrede für Briefe, z.B. „Sehr geehrte Frau Mustermann,“.</summary>
|
||||
public string? LetterSalutation { get; set; }
|
||||
public string? Phone { get; set; }
|
||||
public string? Email { get; set; }
|
||||
public string? Street { get; set; }
|
||||
@@ -40,3 +42,16 @@ public enum ContactInvalidReason
|
||||
}
|
||||
|
||||
public enum Gender { M, W, D }
|
||||
|
||||
public sealed record StudentReferenceSummary(
|
||||
int Memberships,
|
||||
int ExamResults,
|
||||
int Grades,
|
||||
int ReportGrades,
|
||||
int ParticipationEntries,
|
||||
int DocumentationEntries)
|
||||
{
|
||||
public int Total => Memberships + ExamResults + Grades + ReportGrades
|
||||
+ ParticipationEntries + DocumentationEntries;
|
||||
public bool HasReferences => Total > 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user