Пример #1
0
        public void AddAttrition(long personId, Attrition attrition)
        {
            if (attrition == Attrition.None)
            {
                return;
            }

            Metadata.Add(new Metadata {
                PersonId = personId, Name = attrition.ToName()
            });
        }
Пример #2
0
        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()
            };
        }