/**
         * Method returns status of appointment - is it booked or available
         *
         * @param date
         * @param time
         * @param staffId
         * @return appointment status(booked or not)
         */
        public bool isBookedAppointment(string date, string time, int staffId)
        {
            List <IModel> allBookedAppointments = repo.getBookedAppointmentsPerDatePerLoggedInPatient(date);

            foreach (BookingModel booking in allBookedAppointments)
            {
                if (booking.getStartTime().Equals(time) && booking.getStaffModel().getStaffId() == staffId)
                {
                    return(true);
                }
            }
            return(false);
        }