public void Update(Nutraceutical obj) { //_context.Entry<Nutraceutical>(obj).State = System.Data.Entity.EntityState.Modified; _context.Set <Nutraceutical>().AddOrUpdate(obj); }
public void Update(Prescription obj) { //_context.Entry<Prescription>(obj).State = System.Data.Entity.EntityState.Modified; _context.Set <Prescription>().AddOrUpdate(obj); }
public void Update(Disease obj) { //_context.Entry<Disease>(obj).State = System.Data.Entity.EntityState.Modified; _context.Set <Disease>().AddOrUpdate(obj); }