public ActionResult Index(string urlName) { if (!string.IsNullOrWhiteSpace(urlName) && !webAppContext.IsContentAuthoringSite) { var model = new JobProfileSettingsAndPreviewModel { ShouldSetVocCookie = true, VocSetPersonalisationCookieNameAndValue = $"{Constants.VocPersonalisationCookieName}={HttpUtility.UrlEncode(urlName)}; path=/" }; return(View("Index", model)); } return(new EmptyResult()); }
public ActionResult Index() { if (webAppContext.IsContentAuthoringAndNotPreviewMode) { var model = new JobProfileSettingsAndPreviewModel { DefaultJobProfileUrl = DefaultJobProfileUrlName }; return(View("Index", model)); } return(new EmptyResult()); }