using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace YLErp.Modules.SwapModule.Dto { public class TrsAccountManageDto:TrsAcountManage { public List TrsAccountManageDetails { get; set; }=new List(); public string ClientNames { get { if (this.TrsAccountManageDetails==null|| this.TrsAccountManageDetails.Count==0) { return "--"; } if (this.TrsAccountManageDetails.Any(s=>s.client_id==null)) { return "--"; } return string.Join(",", this.TrsAccountManageDetails.Select(s=>s.client_name)); } } } }