This commit is contained in:
David Štaleker
2023-06-23 10:10:25 +02:00
parent eb3c0ed4e8
commit d0fa4db3d8
8 changed files with 519 additions and 0 deletions

View File

@@ -21,6 +21,11 @@ namespace EveryThing.Models.CodeTable
[Display(Name = "Vsebina")]
public string Content { get; set; }
[NotMapped]
public string ContentDisplay => Content == null ? "" : Content.Length >= 30
? Content.Substring(0, 30)
: Content;
// ForeingKey
public CodeTableCompany Company { get; set; }