/// <summary> /// Create an audit of an event /// </summary> public static void Log(Entities ctx, AuditType type, string source, string message, int systemUserID) { var dataSource = new AUDITLOG() { AUDITTYPE = type.ToString(), DESCRIPTION = message, SOURCE = source, URL = "", CREATEDON = DateTime.Now, DELETED = 0, SYSTEMUSERID = systemUserID }; ctx.AddToAUDITLOGs(dataSource); }
/// <summary> /// Create an audit of an event /// </summary> public static void Log(Entities ctx, AuditType type, string source, string message, int systemUserID) { var dataSource = new AUDITLOG() { AUDITTYPE = type.ToString(), DESCRIPTION = message, SOURCE = source, URL = HttpContext.Current.Request.AppRelativeCurrentExecutionFilePath, CREATEDON = DateTime.Now, DELETED = 0, SYSTEMUSERID = systemUserID }; ctx.AddToAUDITLOGs(dataSource); }