/// <summary> /// remove the patient from list /// </summary> /// <param name="savePath"></param> /// <param name="id"></param> public void RemovePatient(string savePath, string id) { if (AppSettings.StoredPatientInAzure) { AzureStorageHelper.DeleteBlob("", id + ".xml"); } else { //stored the patient information into local folder to demo string saveFilePath = Path.Combine(savePath, string.Format("{0}.xml", id)); if (File.Exists(saveFilePath)) { File.Delete(saveFilePath); } } }