public async Task <IActionResult> Index()
        {
            var appointmentItems = await appointmentsAPI.GetAsync(pageSize : 50);

            var model = new AppointmentViewModel {
                AppointmentItems = appointmentItems
            };

            return(View(model));
        }
 public async Task <PaginatedItems <Appointment> > GetAsync(int pageSize = 10, int pageIndex = 0)
 => await client.GetAsync(pageSize, pageIndex);