Exemplo n.º 1
0
        public IActionResult GetSearchResult(HomesListViewModel filtering, int pageNo = 1)
        {
            filtering.Homes = homeRepo.GetByFilterParams(filtering.FilterParams).
                              Select(x => HomeViewModel.MapHomeToHomeViewModel(x)).
                              ToList();

            var homes = HomeList(filtering);

            return(PartialView("SearchResult", homes));
        }