/// Lấy các chuyên khoa của 1 bác sĩ bằng bác sĩ Id
        private List <string> GetListSpecialityName(string doctorId)
        {
            var specialityDoctors = _specialityDoctorService.GetSpecialityDoctors(s => s.DoctorBasicId.Equals(doctorId));
            var result            = new List <string>();

            foreach (var item in specialityDoctors)
            {
                result.Add(item.Speciality.Name);
            }
            return(result);
        }
 public ActionResult GetDoctorsBySpeciality(Guid id)
 {
     try
     {
         var doctors = _specialityDoctorService.GetSpecialityDoctors(_ => _.SpecialityId == id && _.DoctorBasic.MyUser.IsActive == true);
         List <DoctorBasicViewModel> result = new List <DoctorBasicViewModel>();
         foreach (var item in doctors)
         {
             result.Add(item.DoctorBasic.Adapt <DoctorBasicViewModel>());
         }
         return(Ok(result));
     }
     catch (Exception e)
     {
         return(BadRequest(e.Message));
     }
 }