Exemplo n.º 1
0
 public void AddMedication(Common.Medication m)
 {
     DataLayer.PatientsHandler dap = new DataLayer.PatientsHandler();
     m.MedicationId = Guid.NewGuid();
     this.AddMedicationToDatabase(m);
 }
Exemplo n.º 2
0
 public void AddMedication(Common.Medication medication)
 {
     this.Entities.Medications.Add(medication);
     this.Entities.SaveChanges();
 }
Exemplo n.º 3
0
 private void AddMedicationToDatabase(Common.Medication medication)
 {
     new DataLayer.PatientsHandler().AddMedication(medication);
 }