Commit c573fa32 authored by Nikita Kums's avatar Nikita Kums
Browse files

Update Contact.cs

parent 9ba9d827
......@@ -9,7 +9,11 @@ namespace Domain
ContactValue = contactValue;
Person = person;
ContactType = contactType;
//when creating a new contact then we add the contact to person and
//contactType aswell. so we can get to contact from person and from
//contactType. Otherwise Contact has a person and a contactType
//for the person but if coming from contactType or person side
//then theres nothing.
person.Contacts.Add(this);
contactType.Contacts.Add(this);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment