public static void AuditOperation() { try { IAuditDbManager _auditManager = new AuditDbManager(); var data = GetAuditLog(); _auditManager.SaveAuditLog(data); } catch (Exception ex) { //return audit; } }
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; } }