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