private void RefresacrButton_Click(object sender, EventArgs e)
        {
            bool     paso = false;
            Contexto c    = new Contexto();
            ValorTotalDeInventario vl;

            vl = llenarClase();

            if (!ExisteEnLaBasedeDatos((int)vl.ValorTotalInventarioId))
            {
                ValorTotalDeInventarioBLL.Guardar(vl);
            }
            else
            {
                paso = ValorTotalDeInventarioBLL.Modificar(vl);
            }
            ValorTextBox.Text = vl.ValorTotalInventario.ToString();
        }
        private bool ExisteEnLaBasedeDatos(int id)
        {
            ValorTotalDeInventario vl = ValorTotalDeInventarioBLL.Buscar(id);

            return(vl != null);
        }