Example #1
0
        public Boolean Editar()
        {
            Boolean Resultado = false;
            String  Sentencia = @"UPDATE ROLES SET Rol = '" + this._Rol + "' WHERE IDRol = " + this._IDRol + ";";

            try
            {
                DataManager.CLS.OperacionBD Operacion = new DataManager.CLS.OperacionBD();
                if (Operacion.Actualizar(Sentencia) > 0)
                {
                    Resultado = true;
                }
                else
                {
                    Resultado = false;
                }
            }
            catch
            {
                Resultado = false;
            }

            return(Resultado);
        }
        public Boolean Editar()
        {
            Boolean Resultado = false;
            String  Sentencia = @"UPDATE Secciones SET Descripcion = '" + this._Descripcion + "', Turno = '" + this._Turno + "', Aula =  '" + this._Aula + "', Cupo ='" + this._Cupo + "', IDGrado = '" + this._IDGrado + "' WHERE IDSeccion = '" + this._IDSeccion + "';";

            try
            {
                DataManager.CLS.OperacionBD Operacion = new DataManager.CLS.OperacionBD();
                if (Operacion.Actualizar(Sentencia) > 0)
                {
                    Resultado = true;
                }
                else
                {
                    Resultado = false;
                }
            }
            catch
            {
                Resultado = false;
            }

            return(Resultado);
        }