public void InsertGlucose(Entities.Glucose glucose) { try { _ctx.Glucoses.Add(glucose); } catch (DbUpdateException dbEx) { throw dbEx; } }
public void UpdateGlucose(Entities.Glucose glucose) { _ctx.Entry(glucose).State = EntityState.Modified; }