public void Log(_LogAutenticacionAPI log)
 {
     if (!string.IsNullOrEmpty(log.Metodo))
     {
         this.Logs.Add(log);
         this.SaveChanges();
     }
 }
 public void AgregarLog(LogCmd log)
 {
     try
     {
         _LogAutenticacionAPI logE = new _LogAutenticacionAPI(log.Tipo, log.Usuario, log.Aplicacion, log.Metodo, log.Entidad, log.Request, log.Response, log.EsExcepcion, log.Mensaje, log.Parametros);
         _ufw.InsertarLog(logE);
     }
     catch (Exception e)
     {
         _ufw.Rollback();
         throw e;
     }
 }
Beispiel #3
0
 public void InsertarLog(_LogAutenticacionAPI log)
 {
     try
     {
         this.BeginTransaction();
         this._contexto.Logs.Add(log);
         this._contexto.SaveChanges();
         this.Commit();
     }
     catch (Exception e)
     {
         this.Rollback();
         throw e;
     }
 }