protected function proceed() { switch ($this->action) { case 'get': $this->succeed(PlacesService::getFloor($this->params['id'])); break; case 'getAll': $this->succeed(PlacesService::getAllFloors()); break; } }