private async Task <IActionResult> PageResult(int year, int month, int day, string id) { SelectedDate = new LocalDate(year, month, day); Slot = await _service.FindAppointmentSlotByIdAsync(id); if (Slot == null) { return(RedirectToPage("Index", new { year, month, day })); } return(Page()); }
public async Task OnGet([FromQuery] string id) { AppointmentSlot = await _service.FindAppointmentSlotByIdAsync(id); }