Example #1
0
        public void editarCategoria()
        {
            Categoria_BLL categoriaBLL = new Categoria_BLL();

            Poyecto_Tickets_DAL.Categoria categoria = new Poyecto_Tickets_DAL.Categoria();

            categoria.ID_Categoria = int.Parse(lblID_Categoria.Text);
            categoria.nombre       = txtNombre.Text;
            categoria.descripcion  = txtDescripcion.Text;

            categoriaBLL.EditarCategoria(categoria);
        }
Example #2
0
        public void cargarCategoriaPorID(int pID_Categoria)
        {
            Categoria_BLL categoriaBLL = new Categoria_BLL();

            Poyecto_Tickets_DAL.Categoria categoria = new Poyecto_Tickets_DAL.Categoria();

            categoria = categoriaBLL.cargarCategoriasPorID(pID_Categoria);

            lblID_Categoria.Text = categoria.ID_Categoria.ToString();
            txtNombre.Text       = categoria.nombre;
            txtDescripcion.Text  = categoria.descripcion;
        }
Example #3
0
        public void agregarCategoria()
        {
            Categoria_BLL categoriaBLL = new Categoria_BLL();

            Poyecto_Tickets_DAL.Categoria categoria = new Poyecto_Tickets_DAL.Categoria();


            categoria.nombre      = txtNombre.Text;
            categoria.descripcion = txtDescripcion.Text;

            categoriaBLL.AgregarCategoria(categoria);
            limpiarCampos();
        }