Exemplo n.º 1
0
        public List <Apoderado> TraeApoderadosXid_Beneficiario(Int64 id_Beneficiario)
        {
            try
            {
                return(oDatos.TraeApoderadosXid_Beneficiario(id_Beneficiario));
            }
            catch (Exception ex)
            {
                throw new Exception("Error " + System.Reflection.MethodBase.GetCurrentMethod(), ex);
            }

            finally
            {
                oDatos.Dispose();
            }
        }
Exemplo n.º 2
0
        public List <Apoderado> TraeApoderadosXid_Beneficiario(Int64 id_Beneficiario)
        {
            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.TraeApoderadosXid_Beneficiario(id_Beneficiario));
            }
            catch (Exception ex)
            {
                throw ex;
            }
            finally
            {
                objdao.Dispose();
            }
        }