homeService = $homeService; } public function home($outletId) { try { $data = $this->homeService->home($outletId); return $this->successResponse($data); } catch(\Exception $e) { return $this->errorResponse(errorDetails: $e->getMessage()); } } public function getOutlets() { try { $data = $this->homeService->getOutlets(); return $this->successResponse($data); } catch(\Exception $e) { return $this->errorResponse(errorDetails: $e->getMessage()); } } public function getMainOutlet() { try { $data = $this->homeService->getMainOutlet(); return $this->successResponse($data); } catch(\Exception $e) { return $this->errorResponse(errorDetails: $e->getMessage()); } } }