public function deleteLedger($id) { if ($this->validateAdmin()) { if (Ledger::Delete($id)) { echo 1; } else { echo 0; } } else { echo 0; } }