Ejemplo n.º 1
0
        public Datos.Modelo.Aeropuerto DatosModificar()
        {
            Datos.Modelo.Aeropuerto obj = new Datos.Modelo.Aeropuerto();

            int id = 0; int.TryParse(txt_IdAeropuerto.Text, out id);

            obj.Id_Aeropuerto = id;
            obj.Nombre        = txt_NombreAeropuerto.Text;
            obj.Id_Ciudad     = Convert.ToInt32(ddl_Ciudad.SelectedValue);

            return(obj);
        }
Ejemplo n.º 2
0
        public Datos.Modelo.Aeropuerto DatosAgregar()
        {
            Datos.Modelo.Aeropuerto obj = new Datos.Modelo.Aeropuerto();

            int id = 0; int.TryParse(txtid.Text, out id);

            obj.Id_Aeropuerto = id;
            obj.Nombre        = txtnombre.Text;
            obj.Id_Ciudad     = Convert.ToInt32(ddlciudad.SelectedValue);

            return(obj);
        }