public IdentityDocument(Party party, IdentityDocumentType type, string num, DateTime?effective = null, DateTime?due = null, string fileUrl = null) { PartyId = party.Id; Type = type; Num = num; EffectiveFrom = effective; EffectiveTo = due; FileUrl = fileUrl; }
public void AddIdentityDocument(IdentityDocumentType type, string num, DateTime?effective = null, DateTime?due = null, string fileUrl = null) { IdentityDocuments.Add(new IdentityDocument(this, type, num, effective, due, fileUrl)); }