public static void LogAssetAction(int assetId, User user, AuditAssetAction auditAssetAction, string notes)
        {
            AuditAssetHistory aah = AuditAssetHistory.New();

            aah.SessionId          = BusinessHelper.GetCurrentSessionId();
            aah.IpAddress          = BusinessHelper.GetCurrentIpAddress();
            aah.AuditAssetActionId = Convert.ToInt32(auditAssetAction);
            aah.UserId             = user.UserId.GetValueOrDefault();
            aah.AssetId            = assetId;
            aah.Notes = notes;
            aah.Date  = DateTime.Now;
            AuditAssetHistory.Update(aah);

            m_Logger.InfoFormat("LogAssetAction - Asset ID: {0}, User: {1}, Action: {2}, Notes: {3}", assetId, user.FullName, auditAssetAction, notes);
        }
 public static void LogAssetAction(Asset asset, User user, AuditAssetAction auditAssetAction, string notes)
 {
     LogAssetAction(asset.AssetId.GetValueOrDefault(), user, auditAssetAction, notes);
 }
 public static void LogAssetAction(int assetId, User user, AuditAssetAction auditAssetAction)
 {
     LogAssetAction(assetId, user, auditAssetAction, string.Empty);
 }