Example #1
0
        public override bool getDatos(int id)
        {
            clear();
            bool exito = false;

            try
            {
                dsGimnasioTableAdapters.salidaTableAdapter ta = new dsGimnasioTableAdapters.salidaTableAdapter();
                dsGimnasio.salidaDataTable dt = ta.GetDataById(id);

                if (dt.Rows.Count > 0)
                {
                    datos = (dsGimnasio.salidaRow)dt.Rows[0];
                    exito = true;
                }
            }
            catch (Exception ex)
            {
                error.Add(ex.Message);
            }

            return(exito);
        }