private void Bind(IEnumerable <Appointment> appointments)
        {
            var patients = _patientRepository.GetAllEager();

            BindAppointmentsWithPatient(appointments, patients);

            var doctors = _doctorRepository.GetAllEager();

            BindAppointmentsWithDoctor(appointments, doctors);

            var rooms = _roomRepository.GetAll();

            BindAppointmentsWithRoom(appointments, rooms);
        }
        public IEnumerable <Client> GetAllEager()
        {
            var accounts = _accountRepository.GetAllEager();
            var clients  = GetAll();

            BindAccountsWithClients(accounts, clients);
            return(clients);
        }
        public IEnumerable <Loan> GetAllEager()
        {
            var clients = _clientRepository.GetAllEager();
            var loans   = GetAll();

            BindClientsWithLoans(clients, loans);
            return(loans);
        }
        private void Bind(IEnumerable <Diagnosis> diagnosis)
        {
            IEnumerable <Therapy> therapies = _therapyEagerCSVRepository.GetAllEager();
            IEnumerable <Disease> diseases  = _diseaseEagerCSVRepository.GetAllEager();

            BindDiagnosisWithDisease(diagnosis, diseases);
            BindDiagnosisWithTherapies(diagnosis, therapies);
        }
Exemple #5
0
        public IEnumerable <Transaction> GetAllEager()
        {
            var clients      = _clientRepository.GetAllEager();
            var transactions = GetAll();

            BindClientsWithTransactions(clients, transactions);
            return(transactions);
        }
        public IEnumerable <Appointement> GetAllEager()
        {
            var appointements = GetAll();
            var doctors       = _doctorRepository.GetAllEager();
            var patients      = _patientRepository.GetAllEager();
            var rooms         = _roomRepository.GetAllEager();

            BindDoctorsWithAppointements(doctors, appointements);
            BindPatientsWithAppointements(patients, appointements);
            BindRoomsWithAppointements(rooms, appointements);
            return(appointements);
        }
        private void Bind(IEnumerable <Therapy> therapies)
        {
            IEnumerable <Prescription> prescriptions = _prescriptionEagerCSVRepository.GetAllEager();

            BindTherapyWithPrescription(therapies, prescriptions);
        }
        private void Bind(IEnumerable <Patient> patients)
        {
            var doctors = _doctorRepository.GetAllEager();

            patients.ToList().ForEach(patient => patient.SelectedDoctor = GetDoctorByID(patient.SelectedDoctor, doctors));
        }