Esempio n. 1
0
 public Patient Save(Patient p, RegistryDbContext db)
 {
     db.Patients.Add(p);
     db.SaveChanges();
     return(p);
 }
Esempio n. 2
0
 public void UploadPatients(List <Patient> patients, RegistryDbContext db)
 {
     db.Patients.AddRange(patients);
     db.SaveChanges();
 }
Esempio n. 3
0
 public static List <Patient> Get(RegistryDbContext db)
 {
     return(db.Patients.ToList());
 }