/** * PUT /api/v1/currencies/%id * Update currency data * * @param Api_Dto_Currency $dto * @return Api_Controller_Response_Result * @throws Api_Exception_NotFound */ public function putAction(Api_Dto_Currency $dto) { $currency = $this->_service->findById($this->_request->getId()); if (!$currency) { throw new Api_Exception_NotFound(); } $currency = $this->_service->update($currency, $dto); return $this->_createResult([$currency], $this->_createMeta(1)); }