Exemplo n.º 1
0
        public void EliminarTest()
        {
            int  id = 1;
            bool paso;

            paso = ReciboBLL.Eliminar(id);

            Assert.AreEqual(paso, true);
        }
Exemplo n.º 2
0
        protected void ButtonEliminar_Click(object sender, EventArgs e)
        {
            int id = util.ToInt(ReciboId.Text);

            if (bLL.Eliminar(id))
            {
                util.ShowToastr(this.Page, "Eliminado con exito!!", "Eliminado!!", "success");
                Limpiar();
            }
            else
            {
                util.ShowToastr(this.Page, "No pudo eliminar!!", "Fallo!!", "error");
            }
        }
 private void Eliminarbutton_Click(object sender, EventArgs e)
 {
     if (Validar(1))
     {
         MessageBox.Show("Favor Llenar Casilla!", "Exito", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
     else
     {
         int id = Convert.ToInt32(reciboIdNumericUpDown.Value);
         if (ReciboBLL.Eliminar(id))
         {
             MessageBox.Show("Eliminado!!", "Exito", MessageBoxButtons.OK, MessageBoxIcon.Information);
             Limpiar();
         }
         else
         {
             MessageBox.Show("No se pudo eliminar!!", "Fallo", MessageBoxButtons.OK, MessageBoxIcon.Error);
         }
     }
 }