示例#1
0
        public ActionResult SearchProperties(AdvSearchModel searchModel)
        {
            //create search criteria


            return(null);
        }
示例#2
0
        public async Task <ActionResult> GetAllValues()
        {
            try
            {
                AdvSearchModel searchModel = new AdvSearchModel();


                searchModel.Locations = (new PreValueHelper()).GetPreValuesFromAppSettingName(cmsModel.LOCATION_SETTING_NAME);

                searchModel.Services = (new PreValueHelper()).GetPreValuesFromAppSettingName(cmsModel.SERVICE_SETTING_NAME);

                searchModel.Categories = (new PreValueHelper()).GetPreValuesFromAppSettingName(cmsModel.CATEGORY_SETTING_NAME);

                searchModel.PropertyTypes = (new PreValueHelper()).GetPreValuesFromAppSettingName(cmsModel.TYPE_SETTING_NAME);

                searchModel.Fittings = (new PreValueHelper()).GetPreValuesFromAppSettingName(cmsModel.FITTING_SETTING_NAME);

                searchModel.UnitViews = (new PreValueHelper()).GetPreValuesFromAppSettingName(cmsModel.UNITVIEW_SETTING_NAME);

                searchModel.Facilities = (new PreValueHelper()).GetPreValuesFromAppSettingName(cmsModel.FACILITIES_SETTING_NAME);

                searchModel.minBeds = (new PreValueHelper()).GetPreValuesFromAppSettingName(cmsModel.MINBED_SETTING_NAME);

                searchModel.maxBeds = (new PreValueHelper()).GetPreValuesFromAppSettingName(cmsModel.MAXBED_SETTING_NAME);

                searchModel.minPrice = (new PreValueHelper()).GetPreValuesFromAppSettingName(cmsModel.MINPRICE_SETTING_NAME);

                searchModel.maxPrice = (new PreValueHelper()).GetPreValuesFromAppSettingName(cmsModel.MAXPRICE_SETTING_NAME);

                searchModel.developmentHold = (new PreValueHelper()).GetPreValuesFromAppSettingName(cmsModel.DEVHOLD_SETTING_NAME);


                return(PartialView(StringConstants.PARTIAL_VIEW_PATH + PARTIAL_VIEW_SEARCH, await Task.FromResult(searchModel)));
            }
            catch (Exception ex)
            {
                return(null);
            }
        }