public static List <Appointment> GetParticipantsAppointments(List <User> selectedUsers, AppointmentDatabase appointmentDatabase)
        {
            List <Appointment> selectedUsersAppointments = new List <Appointment>();

            if (selectedUsers != null && appointmentDatabase != null)
            {
                foreach (User user in selectedUsers)
                {
                    selectedUsersAppointments.AddRange(appointmentDatabase.GetSelectedUserAppointments(user));
                }
            }

            return(selectedUsersAppointments);
        }