public IActionResult Index() { var vm = new StayViewModel() { Stays = _stayService.GetAll().ToList(), Animals = _animalService.GetAll().ToList(), Lodges = _lodgingService.GetAll().ToList() }; return(View(vm)); }
public IActionResult Index() { // TODO create custom viewModel return(View(_lodgingService.GetAll().ToList())); }