private string SetupJavascript(SCORMLaunchParameters scoLaunch)
        {
            return($@"var SCOClient = SCOClient || {{}};
SCOClient.sessionid = '{scoLaunch.SessionId}';
SCOClient.userid = '{scoLaunch.UserId}';
SCOClient.coreid = '{scoLaunch.CoreId}';
SCOClient.moduleid = '{SCORM_Course_id}';
SCOClient.sco_identifier = 'default'; 
SCOClient.scorm_course_id = '{scoLaunch.SCORM_Course_Id}';
SCOClient.scoAddress = '{scoLaunch.Url}';
SCOClient.scoFrameClientID = 'SCO1';
SCOClient.divDebugID = 'divDebug';
SCOClient.bDebug = false;
SCOClient.DateCreated = '{DateTime.Today}'; ");
        }
        private SCORMLaunchParameters GetCourseInformation(string user_id)
        {
            SCORMLaunchParameters scoLaunch = new SCORMLaunchParameters();
            // convert user_ID to a valid user in our system
            // get all the information for the SCO_ID and formulate the launch parameters

            var launchInfo = databaseHelper.getSCORMCourse(SCORM_Course_id);

            scoLaunch.SCORM_Course_Id = SCORM_Course_id.ToString();
            scoLaunch.UserId          = user_id.ToString();
            // get url to sco
            scoLaunch.Url = launchInfo.href;
            // get coreid
            int iCore_id = getSCOCoreID(user_id, SCORM_Course_id);

            scoLaunch.CoreId = iCore_id.ToString();
            // get SCORM sessionid. We supply the asp.net session id, and the other scorm identifiers
            string AspNetSessionID = "ScormClientAPI";

            scoLaunch.SessionId = getSCOSessionID(iCore_id, SCORM_Course_id, UserID, AspNetSessionID, DateTime.Now).ToString();
            return(scoLaunch);
        }