public void AddAttrition(long personId, Attrition attrition) { if (attrition == Attrition.None) { return; } Metadata.Add(new Metadata { PersonId = personId, Name = attrition.ToName() }); }
public void AddAttrition(long personId, Attrition attrition) { if (attrition == Attrition.None) { return; } if (!Metadata.ContainsKey(personId)) { Metadata.Add(personId, null); } Metadata[personId] = new Metadata { PersonId = personId, Name = attrition.ToName() }; }