Eliminar() public method

public Eliminar ( ) : bool
return bool
        public void EliminarTest()
        {

            Egresos egreso = new Egresos();
            egreso.EgresoId = 6;
            Assert.IsTrue(egreso.Eliminar());
        }
 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");
     }
 }