Esempio n. 1
0
 public List <ComboBoxDto> listarFiltroCombo(int sujeto_riesgo)
 {
     using (var dbContextTransaction = context.Database.BeginTransaction())
     {
         try
         {
             List <ComboBoxDto> objLista = new List <ComboBoxDto>();
             DataSet            dataSet  = MGR_Common.OracleHelper.Query(conn, MgrEnumConsultaGeneral.MgrVariableFiltroCombo(sujeto_riesgo), System.Data.CommandType.Text, null);
             if (dataSet != null)
             {
                 objLista = dataSet.Tables[0].DataTableToList <ComboBoxDto>();
                 return(objLista);
             }
         }
         catch (Exception ext)
         {
             string valor = ext.ToString();
             dbContextTransaction.Rollback();
         }
         return(null);
     }
 }