コード例 #1
0
 public static void AuditOperation()
 {
     try
     {
         IAuditDbManager _auditManager = new AuditDbManager();
         var             data          = GetAuditLog();
         _auditManager.SaveAuditLog(data);
     }
     catch (Exception ex)
     {
         //return audit;
     }
 }
コード例 #2
0
 public static void AuditOperation(string msg, bool isAdmin)
 {
     try
     {
         IAuditDbManager _auditManager = new AuditDbManager();
         var             data          = GetAuditLog();
         data.Message = msg;
         data.IsAdmin = isAdmin;
         _auditManager.SaveAuditLog(data);
     }
     catch (Exception ex)
     {
         //return audit;
     }
 }