private List <Convenio> GetListSucursales() { try { List <Convenio> List = new List <Convenio>(); int Id_U = HiddenId_U.Value == "" ? -1 : Convert.ToInt32(HiddenId_U.Value); Sesion sesion = (Sesion)Session["Sesion" + Session.SessionID]; CN_Convenio cn_conv = new CN_Convenio(); cn_conv.ConsultaPermisosSucursal(Id_U, ref List, sesion.Emp_Cnx); return(List); } catch (Exception ex) { throw ex; } }
private void ConsultaLista() { try { Sesion sesion = (Sesion)Session["Sesion" + Session.SessionID]; List <Convenio> List = new List <Convenio>(); int Id_U = int.Parse(HFId_U.Value); CN_Convenio cn_conv = new CN_Convenio(); cn_conv.ConsultaPermisosSucursal(Id_U, ref List, sesion.Emp_Cnx); this.rgSucursal.DataSource = List; rgSucursal.DataBind(); } catch (Exception ex) { throw ex; } }