Beispiel #1
0
        public IActionResult Index()
        {
            (List <Car> availableCars, List <Car> bookedCars) = service.GetAllCars();

            BookingIndexVM vm = new BookingIndexVM
            {
                AvailableCars = availableCars,
                BookedCars    = bookedCars
            };

            return(View(vm));
        }