Esempio n. 1
0
        public async Task <IActionResult> OnGetAsync(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            VehicleCheck = await _vehicleCheckService.GetSingleById(id.Value);

            if (VehicleCheck == null)
            {
                return(NotFound());
            }
            return(Page());
        }
Esempio n. 2
0
        public async Task <IActionResult> OnGetAsync(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            VehicleCheck = await _vehicleCheckService.GetSingleById(id.Value);

            if (VehicleCheck == null)
            {
                return(NotFound());
            }

            CarRentInformation = VehicleCheck.CarRentInformation;

            await LoadList();

            return(Page());
        }