Ejemplo n.º 1
0
        /// <summary>
        /// Evaluates the change.
        /// </summary>
        /// <param name="historyMessages">The history messages.</param>
        /// <param name="propertyName">Name of the property.</param>
        /// <param name="oldValue">The old value.</param>
        /// <param name="newValue">The new value.</param>
        /// <param name="isSensitive">Indicator of whether the values are sensitive in nature and should not be logged.</param>
        public static void EvaluateChange(List <string> historyMessages, string propertyName, Enum oldValue, Enum newValue, bool isSensitive = false)
        {
            string oldStringValue = oldValue != null?oldValue.ConvertToString() : string.Empty;

            string newStringValue = newValue != null?newValue.ConvertToString() : string.Empty;

            EvaluateChange(historyMessages, propertyName, oldStringValue, newStringValue, isSensitive);
        }
Ejemplo n.º 2
0
 private void AddProperty(string key, int personId, Enum value, bool selected = false)
 {
     AddProperty(key, key.SplitCase(), personId, value.ConvertToString(false), value.ConvertToString(), selected);
 }