Exemple #1
0
 public void LoadFromMemoryStream(MemoryStream stream, Pharmacy pharm)
 {
     Convert(CSVService.ReadResource(stream), pharm);
 }
Exemple #2
0
 public void LoadFromResource(string resource, Pharmacy pharm)
 {
     Convert(CSVService.ReadResource(resource), pharm);
 }
Exemple #3
0
 public List <Patient> UploadPatientsFromStream(StreamReader stream, Pharmacy pharm)
 {
     return(Convert(CSVService.Lines(stream), pharm));
 }
Exemple #4
0
 // you'll use one of these two functions
 public void LoadFromFile(string file, Pharmacy pharm)
 {
     Convert(CSVService.ReadFile(file), pharm);
 }
Exemple #5
0
 // you'll use one of these two functions
 public List <Patient> UploadPatients(string file, Pharmacy pharm)
 {
     return(Convert(CSVService.ReadFile(file), pharm));
 }