Example #1
0
        public ActionResult GeneralSocialAccounts()
        {
            if (ConfigurationSettingHelpers.GetGeneralSocialAccountBlock() == null)
            {
                return(null);
            }

            return(PartialView("SocialAccountBlock", ConfigurationSettingHelpers.GetGeneralSocialAccountBlock()));
        }
Example #2
0
        public ActionResult GeneralSocialSharingMobile()
        {
            if (ConfigurationSettingHelpers.GetGeneralSocialShareMobileBlock() == null)
            {
                return(null);
            }

            return(PartialView("SocialShareBlock", ConfigurationSettingHelpers.GetGeneralSocialShareMobileBlock()));
        }
Example #3
0
        private JobFilterViewModel GetJobFilterViewModel()
        {
            var jobListingPage = ConfigurationSettingHelpers.GetJobListingPage();

            if (!jobListingPage.ContentLink.IsNullOrEmpty())
            {
                var jobdetail = DataFactory.Instance.GetDefault <JobDetailPage>(jobListingPage.ContentLink);

                //Find another syntax to avoid "string" (maybe Linq)
                var countryOptions     = RegionManager.Current.LoadAllCountries().ToDictionary(x => x.CountryName, x => x.CountryKey);
                var jobPositionOptions = GetDropDownListOption(jobdetail.Property["JobPosition"] as PropertyDropDownList);

                return(new JobFilterViewModel
                {
                    JobPositions = jobPositionOptions,
                    Countries = countryOptions,
                    BaseUrl = jobListingPage.GetFriendlyUrl()
                });
            }
            return(new JobFilterViewModel());
        }