public void SavePrescriptedMedToDb(PrescriptedMedicine prescriptedMedicine) { using (var dbContext = new ChronoDbContext()) { dbContext.PrescriptedMedicines.Add(prescriptedMedicine); dbContext.SaveChanges(); } }
public void SavePrescriptionToDb(Prescription prescription) { using (var dbContext = new ChronoDbContext()) { dbContext.Prescriptions.Add(prescription); dbContext.SaveChanges(); } }
public void SaveMedBoxToDb(MedicineBox medBox) { using (var dbContext = new ChronoDbContext()) { dbContext.MedicineBoxes.Add(medBox); dbContext.SaveChanges(); } }