/** * @return SS_HTTPResponse */ public function deleteCompanyService() { try { $company_service_id = intval($this->request->param('COMPANY_SERVICE_ID')); $this->manager->unRegister($this->factory->buildCompanyServiceById($company_service_id)); return $this->deleted(); } catch (NotFoundEntityException $ex1) { SS_Log::log($ex1, SS_Log::ERR); return $this->notFound($ex1->getMessage()); } catch (Exception $ex) { SS_Log::log($ex, SS_Log::ERR); return $this->serverError(); } }
public function buildCompanyService($data, $company, $getMarketPlaceType, $live_service_id) { $company_service = $this->factory->buildCompanyService($data['name'], $data['overview'], $company, $data['active'], $getMarketPlaceType->invoke($this), $data['call_2_action_uri'], $live_service_id, $data['published']); return $company_service; }