/** * DELETE /api/v1/currencies/%id * Delete the currency * * @return Api_Controller_Response_Result * @throws Api_Exception_NotFound */ public function deleteAction() { $currency = $this->_service->findById($this->_request->getId()); if (!$currency) { throw new Api_Exception_NotFound(); } $this->_service->delete($currency); return $this->_createResult([$currency], null, Api_Controller_Response_Result::NO_CONTENT); }