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