public void UpdateRecordToMedicines(RecordsMedicine recordsMedicine) { using (context = new MedicalStore_dbEntities()) { context.Entry(recordsMedicine).State = EntityState.Modified; context.SaveChanges(); } }
public void SavePatientToMedicines(RecordsMedicine recordsMedicine) { using (context = new MedicalStore_dbEntities()) { context.RecordsMedicines.Add(recordsMedicine); context.SaveChanges(); } }