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