Example #1
0
        public void EliminarTest()
        {
            Egresos egreso = new Egresos();

            egreso.EgresoId = 6;
            Assert.IsTrue(egreso.Eliminar());
        }
Example #2
0
        protected void EliminarButton_Click1(object sender, EventArgs e)
        {
            Egresos egreso = new Egresos();

            egreso.EgresoId = Convertir();
            if (EgresoIdTextBox.Text.Length == 0)
            {
                ShowToastr(this, "Debe de especificar el ID", "Alerta", "warning");
            }
            if (egreso.Eliminar())
            {
                ShowToastr(this, "Egreso eliminado", "Mensaje", "success");
            }
            else
            {
                ShowToastr(this, "Error al eliminar", "Error", "danger");
            }
        }