Example #1
0
        //operacion Delete
        public int DeleteTipoVehiculo(int id)
        {
            SqlCommand _comando = MetodosCRUDtipoVehiculo.CrearComandoTipoProceAlmacDelete_tv();

            _comando.Parameters.AddWithValue("@id", id);

            return(MetodosCRUDtipoVehiculo.EjecutarComandoProcAlmacDelete_tv(_comando));
        }
Example #2
0
        //operacion Update
        public int UpdateTipoVehiculo(int id, string nombre)
        {
            SqlCommand _comando = MetodosCRUDtipoVehiculo.CrearComandoTipoProceAlmacUpdate_tv();

            _comando.Parameters.AddWithValue("@id", id);
            _comando.Parameters.AddWithValue("@nombre", nombre);

            return(MetodosCRUDtipoVehiculo.EjecutarComandoProcAlmacUpdate_tv(_comando));
        }
Example #3
0
        //Operacion Select
        public static DataTable listTipoVehiculo()

        {
            SqlCommand _comando = MetodosCRUDtipoVehiculo.CrearComandoSelect_tv();

            _comando.CommandText = "select * from tipoVehiculo";

            return(MetodosCRUDtipoVehiculo.EjecutarComandoSelect_tv(_comando));
        }