public void Import(string filename) { connectionService.StopCommunication(); var serverDirectory = new DirectoryInfo(GlobalConstants.ServerBasePath); foreach (var file in serverDirectory.GetFiles()) { file.Delete(); } foreach (var dir in serverDirectory.GetDirectories()) { dir.Delete(true); } ZipFile.ExtractToDirectory(filename, GlobalConstants.ServerBasePath); patientRepo.LoadRepository(); configRepo.LoadRepository(); eventstore.LoadRepository(); }