예제 #1
0
        public PersonFlerRelationType[] ToRetligHandleevneVaergemaalsindehaver(Func <string, Guid> cpr2UuidFunc)
        {
            var disempowerments = Interval
                                  .CreateFromData <TimedTypeWrapper <DisempowermentType> >(this.ItemsAsTimedType)
                                  .SelectMany(w => DisempowermentType.ToPersonRelationType(w.TimedObject as DisempowermentType, cpr2UuidFunc))
                                  .ToArray();

            return(disempowerments);
        }
예제 #2
0
 public static PersonFlerRelationType[] ToPersonRelationType(DisempowermentType disempowerment, Func <string, Guid> cpr2uuidFunc)
 {
     // TODO: (Reverse relation) Shall we also implement unknown persons from their addresses?
     // There seems 2 records with relation PNR and 11 without it
     return(new DisempowermentType[] { disempowerment }
            .Where(d => d != null)
            .Where(d => !string.IsNullOrEmpty(d.ToRelationPNR()))
            .Select(d => d.ToPersonFlerRelationType(cpr2uuidFunc))
            .ToArray());
 }
 public PersonFlerRelationType[] ToRetligHandleevneVaergemaalsindehaver(Func <string, Guid> cpr2uuidFunc)
 {
     // Persons who have legal authority on current person
     return(DisempowermentType.ToPersonRelationType(this.Disempowerment, cpr2uuidFunc));
 }