/// <summary>
        /// Used to launch a lab in LOD. The API is used here to call Launch, which returns a URL that will connect the
        /// user to the lab instance. It is possible to automatically open the window for the user, but be weary of popup blockers
        /// because any window open call on the browser without the direct action of a user (clicking a link) will be blocked by popup
        /// blockers
        /// </summary>
        /// <param name="model">Launches a lab in LOD</param>
        /// <returns>Returns a model contianing the link to the lab instance</returns>
        public IActionResult Launch(LaunchModel model)
        {
            if (!ModelState.IsValid)
            {
                var modelToRebind = model;
                ModelState.Clear();
                return(View("Launch", modelToRebind));
            }

            var apiUrl   = _Settings.APIURL;
            var apiKey   = _Settings.APIKey;
            var client   = new LabOnDemandApiClient(apiUrl, apiKey);
            var response = client.Launch(LAB_PROFILE_TO_LAUNCH, $"{model.FirstName}{model.LastName}", model.FirstName, model.LastName, model.Email);

            model.LabLaunchURL = response.Url;
            if (string.IsNullOrEmpty(model.LabLaunchURL))
            {
                return(View(nameof(StartLaunch), model));
            }
            return(View("LaunchPad", model));
        }