public void SetPersonGroupTrainingResult(ID groupItemId, string dbName, TrainingStatus status)
        {
            var groupItem   = DataWrapper.GetItemById(groupItemId, dbName);
            var fieldValues = new Dictionary <ID, string>
            {
                { Settings.PersonGroupStatusFieldId, status.Status.ToString() },
                { Settings.PersonGroupCreatedDateFieldId, DataWrapper.GetDateFieldValue(status.CreatedDateTime) },
                { Settings.PersonGroupMessageFieldId, status.Message }
            };

            if (status.LastActionDateTime.HasValue)
            {
                fieldValues.Add(Settings.PersonGroupLastActionDateFieldId, DataWrapper.GetDateFieldValue(status.LastActionDateTime.Value));
            }

            DataWrapper.UpdateFields(groupItem, fieldValues);
        }