public ActionResult GeneralSocialAccounts() { if (ConfigurationSettingHelpers.GetGeneralSocialAccountBlock() == null) { return(null); } return(PartialView("SocialAccountBlock", ConfigurationSettingHelpers.GetGeneralSocialAccountBlock())); }
public ActionResult GeneralSocialSharingMobile() { if (ConfigurationSettingHelpers.GetGeneralSocialShareMobileBlock() == null) { return(null); } return(PartialView("SocialShareBlock", ConfigurationSettingHelpers.GetGeneralSocialShareMobileBlock())); }
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()); }