Exemplo n.º 1
0
        public ActionResult Index(SearchedRealEstateViewModel model)
        {
            var result = this.realEstateService
                         .GetAll()
                         .Where(r => r.City.Contains(model.City) || r.Country.Contains(model.Country))
                         .To <DetailsRealEstateViewModel>()
                         .ToList();

            return(View(result));
        }
Exemplo n.º 2
0
        public ActionResult Index(SearchedRealEstateViewModel model)
        {
            var result = this.realEstateService
                .GetAll()
                .Where(r => r.City.Contains(model.City) || r.Country.Contains(model.Country))
                .To<DetailsRealEstateViewModel>()
                 .ToList();

            return View(result);
        }