public bool CanAddParent(PersonDTO parent) { if (SourceParents.Count() == 2) { return(false); } return(!SourceParents.Any(m => m.Gender == parent.Gender)); }
public void AddParent(PersonDTO parent) { SourceParents.Add(parent); }
public bool CanAddParent(PersonDTO parent) { if (SourceParents.Count() == 2) { return(false); } return(!SourceParents.Any(m => m.Gender == parent.Gender)); }
public void AddParent(PersonDTO parent) { SourceParents.Add(parent); }