public static HistoricEntry Create(AuditEntry log, string property, string oldValue, string newValue) { return(new HistoricEntry { User = log.ChangedBy, Changed = log.EntityName, Property = property, From = oldValue, To = newValue, At = Convert.ToDateTime(log.ChangedAt) }); }
private static Dictionary <string, string> NewValues(AuditEntry log) { return(DeserializeProperties(log.NewValue)); }
private static Dictionary <string, string> OldValues(AuditEntry log) { return(log.OldValue == null ? null : DeserializeProperties(log.OldValue)); }