public void CrearGymkana(WhateverGenNHibernate.EN.Whatever.GymkanaEN gym, double lat, double lon, int zoom)
        {
            /*PROTECTED REGION ID(WhateverGenNHibernate.CEN.Whatever_Gymkana_crearGymkana) ENABLED START*/

            GymkanaCAD gymk = new GymkanaCAD();
            MapaCAD    mapa = new MapaCAD();
            MapaEN     map  = new MapaEN();

            map.Latitud      = lat;
            map.Longitud     = lon;
            map.Zoom         = zoom;
            map.Evento_mapa2 = gym;

            gymk.New_(gym);
            mapa.New_(map);

            /*PROTECTED REGION END*/
        }
        public void CrearGymkana(WhateverGenNHibernate.EN.Whatever.GymkanaEN gym, string lat, string lon, int zoom)
        {
            /*PROTECTED REGION ID(WhateverGenNHibernate.CP.Whatever_Gymkana_crearGymkana) ENABLED START*/

            IGymkanaCAD gymkanaCAD = null;
            GymkanaCEN  gymkanaCEN = null;



            try
            {
                SessionInitializeTransaction();
                gymkanaCAD = new GymkanaCAD(session);
                gymkanaCEN = new  GymkanaCEN(gymkanaCAD);

                MapaCP mapa  = new MapaCP(session);
                PasoEN paso  = new PasoEN();
                MapaEN mapen = new MapaEN();

                paso.Descripcion = gym.Descripcion;
                mapen.Latitud    = lat;
                mapen.Longitud   = lon;
                mapen.Zoom       = zoom;

                gym.NumPasos = 1;

                int id_gym = gymkanaCAD.New_(gym);

                AnadirPaso(paso, mapen, gym);
                SessionCommit();
            }
            catch (Exception ex)
            {
                SessionRollBack();
                throw ex;
            }
            finally
            {
                SessionClose();
            }


            /*PROTECTED REGION END*/
        }