Пример #1
0
 public void AddMedication(Common.Medication m)
 {
     DataLayer.PatientsHandler dap = new DataLayer.PatientsHandler();
     m.MedicationId = Guid.NewGuid();
     this.AddMedicationToDatabase(m);
 }
Пример #2
0
 public void AddMedication(Common.Medication medication)
 {
     this.Entities.Medications.Add(medication);
     this.Entities.SaveChanges();
 }
Пример #3
0
 private void AddMedicationToDatabase(Common.Medication medication)
 {
     new DataLayer.PatientsHandler().AddMedication(medication);
 }