private void listaFuncionesHabilitadasSegunRol() { GD1C2017DataSetTableAdapters.LISTAR_FUNC_X_ROLTableAdapter adaptador = new GD1C2017DataSetTableAdapters.LISTAR_FUNC_X_ROLTableAdapter(); this.listaFuncionalidades.AddRange(adaptador.listaDeFunciones(this.IdRol).AsEnumerable().Select( elemento => elemento.Field <String>("metodo") ).ToList()); }
protected List <FuncionalidadSegunRol> obtenerListaFuncionesAsociadas() { GD1C2017DataSetTableAdapters.LISTAR_FUNC_X_ROLTableAdapter adaptador = new GD1C2017DataSetTableAdapters.LISTAR_FUNC_X_ROLTableAdapter(); return(adaptador.listaDeFunciones( Convert.ToInt32((this.comboRol.SelectedValue))) .AsEnumerable().Select( elemento => new FuncionalidadSegunRol() { id = elemento.Field <int>("id"), nombreFuncion = elemento.Field <String>("nombreFuncion"), }).ToList()); }