public EmployerRecord ToEmployerRecord() { var address = ActiveAddress; return(new EmployerRecord() { Id = OrganisationId, Name = OrganisationName, CompanyNumber = PrivateSectorReference, SicSectors = GetSicSectors(",<br/>"), SicCodes = OrganisationSicCodes?.Select(sic => sic.SicCodeId).ToDelimitedString(), Address1 = address.Address1, Address2 = address.Address2, Address3 = address.Address3, Country = address.Country, PostCode = address.PostCode, PoBox = address.PoBox }); }
public string GetSicSectors(string delimiter = ", ") { return(OrganisationSicCodes.Select(s => s.SicCode.SicSection.Description).ToDelimitedString(delimiter)); }