Beispiel #1
0
        public IActionResult Index()
        {
            var vm = new StayViewModel()
            {
                Stays   = _stayService.GetAll().ToList(),
                Animals = _animalService.GetAll().ToList(),
                Lodges  = _lodgingService.GetAll().ToList()
            };

            return(View(vm));
        }
Beispiel #2
0
 public IActionResult Index()
 {
     // TODO create custom viewModel
     return(View(_lodgingService.GetAll().ToList()));
 }