Exemple #1
0
        public async Task <IActionResult> OnGet(int id)
        {
            Car = await carManager.GetCar(id);

            ReservationsForCar = (await reservationManager.GetReservationsForCar(Car.Id))
                                 .Where(r => r.ReserveFrom > DateTime.Now)
                                 .ToList();
            return(Page());
        }