Пример #1
0
        public ActionResult ChoosePropertyType(TypeOfMerchandising typeOfMerchandising, TypeOfUse typeOfUse)
        {
            var model = new InitListingViewModel
            {
                TypeOfUse           = typeOfUse,
                TypeOfMerchandising = typeOfMerchandising
            };

            return(View(model));
        }
Пример #2
0
        public ActionResult DetailedSearch(TypeOfMerchandising mt = TypeOfMerchandising.Rent, PropertyType pt = PropertyType.Flat)
        {
            var model = Session["SearchViewModel"] as DetailedSearchResultsModel;

            if (model != null)
            {
                model.SummaryViewModels    = _listingService.DetailedSearch(model);
                Session["SearchViewModel"] = null;
            }
            else
            {
                model = _listingService.GetDetailedSearchViewModel(mt, pt);
            }
            model.SaveSearch = false;
            FillLocInfo(model);
            return(View(model));
        }