public DataTable SyncTSOValueTable(DateTime ultimaActualizacion, string tableName) { try { this.Log.Debug("Solicitud de sincronización de la tabla de valores TSO " + tableName); if (this.Login(AuthHeader.UserName, AuthHeader.Key)) { using (UpdateDAO updateDAO = new UpdateDAO(this.connection)) { return updateDAO.GetTable(tableName, ultimaActualizacion); } } else { this.Log.Warn("Error de autentificación. Usuario: " + AuthHeader.UserName); return null; } } catch (Exception e) { this.Log.ErrorException("Excepción en SOREWebService.SyncTSOValueTable: " + e.Message, e); throw e; } }
public DataTable ImportTSOValueTable(string tableName) { try { this.Log.Debug("Solicitud de descarga de la tabla: " + tableName); if (this.Login(AuthHeader.UserName, AuthHeader.Key)) { using (UpdateDAO updateDAO = new UpdateDAO(this.connection)) { return updateDAO.GetTable(tableName); } } else { this.Log.Warn("Error de autentificación. Usuario: " + AuthHeader.UserName); return null; } } catch (Exception e) { this.Log.ErrorException("Excepción en SOREWebService.ImportTSOValueTable: " + e.Message, e); throw e; } }