ПИбд-23. Гуторов И.А. Лабораторная работа 4 #4

Closed
vasmaae wants to merge 7 commits from LabWork_4 into LabWork_3
Showing only changes of commit a2123b8840 - Show all commits

View File

@ -32,7 +32,7 @@ public class Contract
public int PaymentAmount { get; private set; }
[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)]
public IEnumerable<Service> Services { get; private set; } = [];