示例#1
0
 public List <LsBeneficiario> TraeBeneficiariosXNroBeneficioANSES(string BenExCaja, string BenTipo, string BenNumero, string BenCopart, string BenDigVerif)
 {
     try
     {
         return(oDatos.TraeBeneficiariosXNroBeneficioANSES(BenExCaja, BenTipo, BenNumero, BenCopart, BenDigVerif));
     }
     catch (Exception ex)
     {
         throw new Exception("Error en " + System.Reflection.MethodBase.GetCurrentMethod(), ex);
     }
     //catch(sql)
     finally
     {
         oDatos.Dispose();
     }
 }
示例#2
0
        public List <LsBeneficiario> TraeBeneficiariosXNroBeneficioANSES(string BenExCaja, string BenTipo, string BenNumero, string BenCopart, string BenDigVerif)
        {
            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.TraeBeneficiariosXNroBeneficioANSES(BenExCaja, BenTipo, BenNumero, BenCopart, BenDigVerif));
            }
            catch (Exception ex)
            {
                throw ex;
            }
            finally
            {
                objdao.Dispose();
            }
        }