Пример #1
0
        protected void btnUBI_Click(object sender, EventArgs e)
        {
            IRepositorioUbicaciones repoUbi = FabricaReposBienvenidosUY.CrearRepositorioUbicacion();
            Ubicacion ubi = repoUbi.FindById(Convert.ToInt32(txtUBI.Text));

            if (ubi != null)
            {
                lblUBI.Text = ubi.ToString();
            }
            else
            {
                lblUBI.Text = "No hay ubicaciones para mostrar.";
            }
        }