public List <Domain.Entities.Appointment> GetAvailableByPriorityTimeInterval(PriorityParameters parameters)
        {
            List <MedbayTech.Appointment.Domain.Entities.Appointment> appointmentsForAllDoctors = new List <MedbayTech.Appointment.Domain.Entities.Appointment>();
            List <Doctor> doctors = _userGateway.GetAllDoctors();

            foreach (Doctor doctor in doctors)
            {
                parameters.DoctorId = doctor.Id;
                appointmentsForAllDoctors.AddRange(_appointmentService.GetAvailableByDoctorAndTimeInterval(parameters));
            }

            List <MedbayTech.Appointment.Domain.Entities.Appointment> appointments = new List <MedbayTech.Appointment.Domain.Entities.Appointment>();

            foreach (MedbayTech.Appointment.Domain.Entities.Appointment appointment in appointmentsForAllDoctors)
            {
                if (appointment.Period.StartTime >= parameters.ChosenStartDate && appointment.Period.EndTime <= parameters.ChosenEndDate)
                {
                    appointments.Add(appointment);
                }
            }
            AddRoomToAppointment(appointments);
            return(appointments);
        }