public override bool changeState(int newState, int id)
        {
            clear();
            bool exito = false;
            try
            {
                dsGimnasioTableAdapters.sociomembresiaTableAdapter ta = new dsGimnasioTableAdapters.sociomembresiaTableAdapter();
                ta.cambiaEstado(newState, id);

                exito = true;
            }
            catch (Exception ex)
            {
                error.Add(ex.Message);
            }

            return exito;
        }
        public override bool add()
        {
            clear();
            bool exito = false;
            try
            {
                dsGimnasioTableAdapters.sociomembresiaTableAdapter ta = new dsGimnasioTableAdapters.sociomembresiaTableAdapter();
                ta.add(idUsuarioLog,idSocio,idMembresia,Precio,fechaInicioMembresia);

                exito = true;
            }
            catch (Exception ex)
            {
                error.Add(ex.Message);
            }

            return exito;
        }
Пример #3
0
        public override bool changeState(int newState, int id)
        {
            clear();
            bool exito = false;

            try
            {
                dsGimnasioTableAdapters.sociomembresiaTableAdapter ta = new dsGimnasioTableAdapters.sociomembresiaTableAdapter();
                ta.cambiaEstado(newState, id);

                exito = true;
            }
            catch (Exception ex)
            {
                error.Add(ex.Message);
            }

            return(exito);
        }
Пример #4
0
        public override bool add()
        {
            clear();
            bool exito = false;

            try
            {
                dsGimnasioTableAdapters.sociomembresiaTableAdapter ta = new dsGimnasioTableAdapters.sociomembresiaTableAdapter();
                ta.add(idUsuarioLog, idSocio, idMembresia, Precio, fechaInicioMembresia);

                exito = true;
            }
            catch (Exception ex)
            {
                error.Add(ex.Message);
            }

            return(exito);
        }