public IList<PatientDTO> GetAllPatients(IPatientDTO Patient,DbEnum source)
        {
            try
            {
                PatientsDTO = GetPatientsService.GetPatientsRedis(source, Patient);
            }
            catch (Exception ex)
            {
                throw ex;
            }

            return patientsDTO;
        }
 public IList<PatientDTO> GetPatientsByQuery(IPatientDTO patient,List<PatientDTO> patients)
 {
     return patients.Where(p => !string.IsNullOrEmpty( p.Name) &&  p.Name.Length >= patient.Name.Length && p.Name.Substring(0,patient.Name.Length).Contains(patient.Name)).ToList();
 }