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()); }
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()); }