public async Task <IActionResult> Edit(Guid id)
        {
            var appointment = await appointmentsAPI.GetByIdAsync(id);

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

            return(View(model: appointment));
        }
 public async Task <Appointment> GetByIdAsync(Guid id)
 => await client.GetByIdAsync(id);