namespace Kreta.BusinessLogic.HelperClasses { public class IntezmenyNevCimCo { public string IntezmenyAzonosito { get; set; } public int IntezmenyId { get; set; } public string Nev { get; set; } public string Varos { get; set; } public string Iranyitoszam { get; set; } public string Ajto { get; set; } public string Emelet { get; set; } public string Hazszam { get; set; } public string KozteruletJellegNev { get; set; } public string Kozterulet { get; set; } public string OMKod { get; set; } public string Email { get; set; } public string Telefonszam { get; set; } public string IntezmenyCim { get { var kozteruletJellegString = KozteruletJellegNev; var cim = $"{Iranyitoszam}, {Varos} {Kozterulet} {kozteruletJellegString} {Hazszam}"; if (!string.IsNullOrWhiteSpace(Emelet)) { cim += $" {Emelet} em."; } if (!string.IsNullOrWhiteSpace(Ajto)) { cim += $" {Ajto}"; } return cim; } } } }