Ejemplo n.º 1
0
 public void Add(VaccinationVM vaccination)
 {
     db.Vaccinations.Add(new Vaccination {
         VaccineName = vaccination.VaccineName, Consent = vaccination.Consent, Date = vaccination.Date, PatientId = vaccination.PatientId
     });
     db.SaveChanges();
 }
Ejemplo n.º 2
0
 public void Add(Patient patient)
 {
     db.Patients.Add(patient);
     db.SaveChanges();
 }