public int CreateAuditLog(AuditLog audit_log) { IAuditLogBusinessEngine audit_be = _business_engine_factory.GetBusinessEngine <IAuditLogBusinessEngine>(); return(audit_be.AuditLogSave(audit_log)); }
public List <AuditLog> GetAuditLogByBusinessObject(string business_object) { IAuditLogBusinessEngine audit_be = _business_engine_factory.GetBusinessEngine <IAuditLogBusinessEngine>(); return(audit_be.GetAuditLogBusinessObject(business_object)); }
//private void DoAudit(string operation, object object_to_audit) //{ // //Console.WriteLine("************************************************************************"); // //Console.WriteLine($"PERFORMING AUDIT ON {operation} FOR OBJECT {obejct_to_audit.ToString()}"); // //Console.WriteLine("************************************************************************"); // var audit_be = IocContainer.Container.GetInstance<IAuditLogBusinessEngine>(); // audit_be.AuditObject(_service_name, operation, object_to_audit); // audit_be = null; //} private void DoAudit(string operation, object object_to_audit, IAuditLogBusinessEngine audit_be) { audit_be.AuditObject(_service_name, operation, object_to_audit); audit_be = null; }