Beispiel #1
0
 protected object ListarPartidas()
 {
     PlantillaLogic objPlantillaLogic = new PlantillaLogic();
     IEnumerable<PartidaEntity> lstPartidas;
     lstPartidas = objPlantillaLogic.ListarPartida();
     object lstParaCombos = from item in lstPartidas
                            select new
                            {
                                value = item.Codigo,
                                text = item.desNombre
                            };
     return lstParaCombos;
 }