public static string ToRelationPNROrNull(this IRelationship rel) { if (rel != null) { return(Converters.ToPnrStringOrNull(rel.RelationPNR)); } return(null); }
public static string[] ToRelationPNRsOrNull(this IMultipleRelationship rel) { if (rel != null && rel.RelationPNRs != null) { return(rel.RelationPNRs.Select(pnr => Converters.ToPnrStringOrNull(pnr)).ToArray()); } return(null); }
public PersonRelationType[] ToReplacedByRelationType(Func <string, Guid> cpr2UuidFunc) { var newPnr = Converters.ToPnrStringOrNull(CurrentCprNumber); if (!string.IsNullOrEmpty(newPnr)) { return(new PersonRelationType[] { PersonRelationType.Create(cpr2UuidFunc(newPnr), PersonEndDate, null) }); } else { return(new PersonRelationType[0]); } }
public string ToPnr() { return(Converters.ToPnrStringOrNull(this.PNR)); }
public string ToCustodyOwnerPnr() { return(Converters.ToPnrStringOrNull(this.RelationPNR)); }
string ICivilStatus.ToSpousePnr() { return(Converters.ToPnrStringOrNull(this.SpousePNR)); }
public string ToRelationPNR() { return(Converters.ToPnrStringOrNull(this.RelationPNR)); }