Exemple #1
0
        /// <summary>
        /// Populate Filter
        /// </summary>
        /// <returns></returns>
        public ActionResult PopulateSearchFilter(string country)
        {
            SearchModel model = new SearchModel();

            if (country != null && !string.IsNullOrEmpty(country) && country != "")
            {
                model.SelectedCountry = model.GetCountryIdByISOCode(country);
            }

            model.PopulateSearchFilter(TSM.Model.TSMContext.CurrentSiteLanguageID);
            // Populate Combo
            model.PopulateSearchCombo(TSM.Model.TSMContext.CurrentSiteLanguageID);

            return(View("~/Views/Shared/PartialViews/Search/_SearchFilter.cshtml", model));
        }