public async Task <IEnumerable <Chamber> > GetChambers()
        {
            var chambers = await _repo.GetT();

            foreach (var chamber in chambers)
            {
                chamber.Doctor = await doc_Repo.GetTById(chamber.DoctorId);

                chamber.Doctor.Chambers = null;
            }
            return(chambers);
        }
Example #2
0
        public async Task <IEnumerable <Pateint> > GetPateints()
        {
            var pateints = await _repo.GetT();

            foreach (var pateint in pateints)
            {
                pateint.Gender = await gn_Repo.GetTById(pateint.GenderId);

                pateint.Gender.Doctors = null;
            }
            return(pateints);
        }
        public async Task <IEnumerable <DeasisHistory> > GetDeasisHistories()
        {
            var deasisHistories = await _repo.GetT();

            foreach (var deasishist in deasisHistories)
            {
                deasishist.Pateint = await pat_Repo.GetTById(deasishist.PateintId);

                deasishist.Pateint.DeasisHistories = null;
            }
            return(deasisHistories);
        }
        public async Task <IEnumerable <RoasterOfDoctor> > GetRoasters()
        {
            var roasters = await _repo.GetT();

            foreach (var roaster in roasters)
            {
                roaster.Chamber = await _chRepo.GetTById(roaster.ChamberId);

                roaster.Chamber.RoasterOfDoctors = null;
                //roaster.Doctor = await _docRepo.GetTById(roaster.DoctorId);
                //roaster.Doctor.RoasterOfDoctors = null;
            }
            return(roasters);
        }
Example #5
0
        public async Task <IEnumerable <Doctor> > GetDoctors()
        {
            var doctors = await _repo.GetT();

            foreach (var doctor in doctors)
            {
                doctor.Speacialization = await sp_Repo.GetTById(doctor.SpeacializationId);

                doctor.Speacialization.Doctors = null;
                doctor.Gender = await gn_Repo.GetTById(doctor.GenderId);

                doctor.Gender.Doctors = null;
            }
            return(doctors);
        }
 public async Task <IEnumerable <Speacialization> > GetSpeacializations()
 {
     return(await _repo.GetT());
 }