예제 #1
0
        public static int ActRentas(int IdRenta, int IdCliente, int IdPelicula, DateTime fecha)
        {
            SqlCommand comando = MetodoDatos.CrearComandoProc("ActRentas");

            //Llamamos al procedimiento que tenemos en SqlServer
            comando.Parameters.AddWithValue("@IdRenta", IdRenta);
            comando.Parameters.AddWithValue("@IdCliente", IdCliente);
            comando.Parameters.AddWithValue("@IdPelicula", IdPelicula);
            comando.Parameters.AddWithValue("@fecha", fecha);
            return(MetodoDatos.EjecutarComando(comando));
        }