コード例 #1
0
        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());
        }
コード例 #2
0
 public async Task OnGet([FromQuery] string id)
 {
     AppointmentSlot = await _service.FindAppointmentSlotByIdAsync(id);
 }