public AuditLogEntry(string functionName, string transactionId = null, string userid = null,
string appVersion = null, DateTime? logTime = null)
{
FunctionName = functionName;
TransactionId = (string.IsNullOrEmpty(transactionId)
? ApplicationContext.Current.TransactionId
: transactionId);
UserId = (string.IsNullOrEmpty(userid) ? ApplicationContext.Current.UserId : userid);
AppVersion = (string.IsNullOrEmpty(appVersion) ? GetProjectAssemblyVersion() : appVersion);
Items = new Collection<AuditLogEntryItem>();
LogTime = (logTime.HasValue ? logTime.Value : TimeConverter.CurrentDateTime);
}