Beispiel #1
0
        public async Task <IActionResult> HousesSection()
        {
            var sellableHouses = await _houseService.GetAll();

            return(View(new HousesSectionViewModel()
            {
                Houses = _mapper.Map <IEnumerable <SectionHouseViewModel> >(sellableHouses),
                HousesMaxPrice = await _houseService.GetMaxHousePrice(),
                HousesMinPrice = await _houseService.GetMinHousePrice()
            }));
        }