示例#1
0
        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());
        }
示例#2
0
        public ActionResult Index()
        {
            if (webAppContext.IsContentAuthoringAndNotPreviewMode)
            {
                var model = new JobProfileSettingsAndPreviewModel {
                    DefaultJobProfileUrl = DefaultJobProfileUrlName
                };
                return(View("Index", model));
            }

            return(new EmptyResult());
        }