/// <summary> /// Show Human-readable url content. /// </summary> /// <param name="language">Language version of a content.</param> /// <param name="urlName">Human-readable content url path representation.</param> /// <returns>Content representation.</returns> public IActionResult Show(string language, string urlName) { PageViewModel pageVM; using (_humanReadableContentService) { LanguageDefinition languageDefinition; if (String.IsNullOrWhiteSpace(language)) { languageDefinition = _pageConfiguration.DefaultLanguage; } else { try { languageDefinition = _languageManipulationService.LanguageRepresentationToLanguageDefinition(language); } catch { return(HttpNotFound()); } } pageVM = _humanReadableContentService.GetPageByHumanReadableName(languageDefinition, urlName); if (pageVM == null) { return(HttpNotFound()); } } return(View(pageVM)); }