public System.Collections.Generic.IList <WhateverGenNHibernate.EN.Whatever.PasoEN> VerPasos(int id_gym) { /*PROTECTED REGION ID(WhateverGenNHibernate.CEN.Whatever_Gymkana_verPasos) ENABLED START*/ // Write here your custom code... PasoCEN paso = new PasoCEN(); System.Collections.Generic.IList <PasoEN> pasos; pasos = paso.VerPasos(id_gym); return(pasos); /*PROTECTED REGION END*/ }
public System.Collections.Generic.IList <WhateverGenNHibernate.EN.Whatever.PasoEN> VerPasos(int id_gym) { /*PROTECTED REGION ID(WhateverGenNHibernate.CEN.Whatever_Paso_verPasos) ENABLED START*/ // Write here your custom code... PasoCEN paso = new PasoCEN(); GymkanaCEN gym = new GymkanaCEN(); System.Collections.Generic.IList <PasoEN> pasos; System.Collections.Generic.IList <PasoEN> salida = new System.Collections.Generic.List <PasoEN>(); pasos = FiltrarPasoPorGymkana(id_gym); foreach (PasoEN element in pasos) { salida.Add(element); } return(salida); /*PROTECTED REGION END*/ }
public void AnadirPaso(int id_gym, string descripcion, int latitud, int longitud, int zoom) { /*PROTECTED REGION ID(WhateverGenNHibernate.CEN.Whatever_Gymkana_anadirPaso) ENABLED START*/ // Write here your custom code... PasoCEN paso = new PasoCEN(); MapaCEN mapa = new MapaCEN(); int aux = -1; int aux2 = -1; System.Collections.Generic.IList <PasoEN> pasos; pasos = paso.GetAll(0, 0); aux = pasos [pasos.Count - 1].ID; paso.New_(descripcion, aux + 1, id_gym); System.Collections.Generic.IList <MapaEN> mapas; mapas = mapa.GetAll(0, 0); aux2 = mapas [mapas.Count - 1].Id; mapa.New_(id_gym, aux2 + 1, aux + 1, latitud, longitud, zoom); /*PROTECTED REGION END*/ }