Update WineVarietyTemplate

This commit is contained in:
2023-05-25 23:21:34 +02:00
parent df7f2174e5
commit 4c402d81ab
2 changed files with 3 additions and 2 deletions

View File

@ -16,7 +16,7 @@ namespace Elwig.Models {
[Column("comment")]
public string? Comment { get; private set; }
public string NameWithComment => Name + ((Comment != null) ? $" ({Comment})" : "");
public string CommentFormat => (Comment != null) ? $" ({Comment})" : "";
public override string ToString() {
return Name;