public PersonPreg(Person person) { _person = person; DateWhenNameRegistered = NameModel.GetDateWhenNameRegistered(person); MaidenName = person.WithoutLegalCapacity; //"låner" WithoutLegalCapacity, siden det ikke brukes var isFemale = CommonFunctions.IsFemale(person.NIN); GenderBackingValue = isFemale.HasValue ? (isFemale.Value ? 0 : 1) : 0; UpdatedDate = PersonWithMetadata.GetLastUpdated(person); CreatedDate = PersonWithMetadata.GetCreatedDate(person); }
public AddressPreg(Address address) { _address = address; CreatedDate = PersonWithMetadata.GetCreatedDate(address) ?? DateTime.Now.AddDays(-1); UpdatedDate = PersonWithMetadata.GetUpdatedDate(address) ?? DateTime.Now; }