Example #1
0
 public List <LsBeneficiario> TraeBeneficiarios(TipoConsultaBeneficioario iTipoCons, String parametro, String codDoc)
 {
     try
     {
         return(oDatos.TraeBeneficiarios(iTipoCons, parametro, codDoc));
     }
     catch (Exception ex)
     {
         throw new Exception("Error en " + System.Reflection.MethodBase.GetCurrentMethod(), ex);
     }
     //catch(sql)
     finally
     {
         oDatos.Dispose();
     }
 }
Example #2
0
        public List <LsBeneficiario> TraeBeneficiarios(TipoConsultaBeneficioario iTipoCons, String parametro, String codDoc)
        {
            ActoresDatos objdao = new ActoresDatos();

            try
            {
                // Creo un Objeto Windows Identity para enviarle al thread asyncronico
                //(lo necesita para poder impersonar el thread nuevo)
                WindowsIdentity mThreadIdentity = WindowsIdentity.GetCurrent();
                return(objdao.TraeBeneficiarios(iTipoCons, parametro, codDoc));
            }
            catch (Exception ex)
            {
                throw ex;
            }
            finally
            {
                objdao.Dispose();
            }
        }