ПИбд-23. Гуторов И.А. Лабораторная работа 4 #4
@ -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; } = [];
|
||||
|
Loading…
x
Reference in New Issue
Block a user