public async Task <IActionResult> ScheduleAppointment(ScheduleAppointmentRequest request)
        {
            var appointmentId = _identifierGenerationService.Generate();
            var command       = new ScheduleAppointmentCommand(appointmentId, request.DoctorId, request.PatientId, request.AppointmentAt, request.AppointmentDurationInMinutes);
            await _scheduleAppointmentCommandHandler.HandleAsync(command);

            return(CreatedAtAction(nameof(GetById), new { AppointmentId = appointmentId }, null));
        }