public void AddPatients(List <LocalPatient> localPatients)
 {
     new Task(delegate
     {
         foreach (var localPatient in localPatients)
         {
             PatientsDictionary.Add(localPatient.Id, localPatient);
         }
     }).Start();
 }
 public void AddPatient(LocalPatient localPatient)
 {
     PatientsDictionary.Add(localPatient.Id, localPatient);
 }