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