public string GetFurtherIdentification(FurtherIdentificationType.SupportedIds id) { if (FurtherIdentification == null) { return(""); } var fId = FurtherIdentification.FirstOrDefault(p => p.IdentificationType == id.ToString()); if (fId == null) { return(""); } return(fId.Value); }
public void SetFurtherIdenfication(FurtherIdentificationType.SupportedIds id, string value) { if (FurtherIdentification == null) { FurtherIdentification = new List <FurtherIdentificationType>(); } var fId = FurtherIdentification.FirstOrDefault(p => p.IdentificationType == id.ToString()); if (fId != null) { FurtherIdentification.Remove(fId); } FurtherIdentification.Add(new FurtherIdentificationType() { IdentificationType = id.ToString(), Value = value }); }