public int AuditLogSave(AuditLog audit_log)
        {
            if (audit_log == null)
            {
                throw new ArgumentNullException(nameof(audit_log));
            }

            return(ExecuteFaultHandledOperation(() =>
            {
                AuditLogData prod_data = _audit_log_es.Map(audit_log);
                return _audit_log_repo.Insert(prod_data);
            }));
        }
Ejemplo n.º 2
0
 protected virtual void SaveLog(AuditLogInfo auditInfo)
 {
     using (var uow = _unitOfWorkManager.Begin(true))
     {
         _auditLogRepository.Insert(new AuditLog(_guidGenerator, auditInfo));
         uow.SaveChanges();
     }
 }
Ejemplo n.º 3
0
 public void AddServiceLog(AuditLog auditLog)
 {
     auditLogRepository.Insert(auditLog);
 }