Exemplo n.º 1
0
        public ActionResult GetAllHouses()
        {
            var allHousesModel = _houseManager.GetAllHouses();
            var allHousesView  = _mapper.Map <List <HouseModel>, List <HouseViewModel> >(allHousesModel);
            var newViewModel   = new GetAllHousesViewModel();

            newViewModel.Houses = allHousesView;
            return(View(newViewModel));
        }