public ActionResult GitHubPatternsAndPracticesDetailPage(int id) {
            dynamic codeSample = _contentManager.Get(id);

            string externalUrl = codeSample.PatternsAndPracticesPart.ExternalLink.Value;
            
             var model = new GitHubViewModel {
                Title = codeSample.TitlePart.Title,
                Icon = GetMediaUrl(codeSample.PatternsAndPracticesPart.Icon),
                Content = codeSample.PatternsAndPracticesPart.SubText.Value,
                HTMLData = GetGitHubMarkDown(externalUrl, "patterns-and-practices"),
                ExternalLink = externalUrl,
                ContentItemId = codeSample.PatternsAndPracticesPart.Id
            };

             return View("CodeSamplesFilter/GitHubPatternsAndPracticesDetailPage", model);
        }
        public ActionResult GitHubHandsOnLabsDetailPage(int id) {
            string externalUrl = "";
            dynamic trainingItem = _contentManager.Get(id);
            var relatedLinks = trainingItem.RelatedLinksPart.Links;
            foreach (var link in relatedLinks) {
                if (link.Type == "handsOnLab") {
                    externalUrl = link.Url;
                }
            }

            var model = new GitHubViewModel
            {
                Title = trainingItem.TitlePart.Title,
                Icon = GetMediaUrl(trainingItem.TrainingPart.Image),
                Content = trainingItem.TrainingPart.SubText.Value,
                HTMLData = GetGitHubMarkDown(externalUrl, "training"),
                ExternalLink = externalUrl,
                ContentItemId = trainingItem.TrainingPart.Id
            };

            return View("CodeSamplesFilter/GitHubHandsOnLabDetailPage", model);
        }