コード例 #1
0
ファイル: DoctorController.cs プロジェクト: MGJimmy/Vezeeta
        public IActionResult DoctorDetails(string Doctor_ID)
        {
            GetDoctorDto doctor = this._doctorAppService.GetDoctorDetails(Doctor_ID);

            var _services    = _doctor_DoctorServiceAppService.GetDoctorServices(doctor.UserId);
            var _subSpecails = _doctorSubSpecialization.GetSubSpecialtyByDoctorId(doctor.UserId);
            var _clinic      = _clinicAppService.GetByStringId(doctor.UserId);


            doctor.services       = _services;
            doctor.subspecails    = _subSpecails;
            doctor.clinic         = _clinic;
            doctor.clinicAreaName = _areaAppService.GetById(_clinic.AreaId).Name;
            doctor.clinicCityName = _cityAppService.Get(_clinic.CityId).Name;
            IEnumerable <GetWorkingDayDTO> workingDaysDTOs = _workingDayAppService.GetWorkingDaysForDoctor(doctor.UserId);

            doctor.workingDays = workingDaysDTOs.ToList();

            IEnumerable <GetClinicImageDto> clinicImagesDto = _clinicImagesAppService.GetAllWhere(doctor.UserId);

            doctor.Clinic_Images = clinicImagesDto.ToList();


            return(Ok(doctor));
        }
コード例 #2
0
ファイル: DoctorAppService.cs プロジェクト: MGJimmy/Vezeeta
        public GetDoctorDto GetDoctorDetails(string Doctor_ID)
        {
            GetDoctorDto doctor = Mapper.Map <GetDoctorDto>(TheUnitOfWork.DoctorRepo.GetDoctorDetailswithID(Doctor_ID));

            return(doctor);
        }