fix Service property in Contract entity

This commit is contained in:
vasmaae 2024-12-09 00:52:36 -08:00
parent 4659147c9d
commit a2123b8840

View File

@ -32,7 +32,7 @@ public class Contract
public int PaymentAmount { get; private set; } public int PaymentAmount { get; private set; }
[DisplayName("Услуги")] [DisplayName("Услуги")]
public string Service => Services != null ? string.Join(", ", Services) : string.Empty; public string Service => Services != null ? string.Join(", ", Services.Select(x => $"{x.Description}")) : string.Empty;
[Browsable(false)] [Browsable(false)]
public IEnumerable<Service> Services { get; private set; } = []; public IEnumerable<Service> Services { get; private set; } = [];