public function publishedJobPost(CompanyService $company, $user_id, $company_id, $job_id) { try { if ($company->publishCompanyJob($job_id)) { return $this->json_response->success(); } return $this->json_response->error(); } catch (Exception $e) { return $this->json_response->error(['error' => $e->getMessage()]); } }