public function CreateQuotationFollowup($quotationId, $data) { try { $userId = AppUtil::getLoggerInUserId(); if ($userId != null) { if (Followup::CreateQuotationFollowup($quotationId, $data, $userId)) { echo AppUtil::getReturnStatus("Successful", "Quotation Followup is created"); } else { echo AppUtil::getReturnStatus("Unsuccessful", "Database Error Occurred"); } } else { echo AppUtil::getReturnStatus("Unsuccessful", "User Id is null"); } } catch (Exception $e) { echo AppUtil::getReturnStatus("Unsuccessful", $e->getMessage()); } }