public void Update(DutyChart obj) { db.Entry(obj).State = EntityState.Modified; Save(); }
public void Insert(DutyChart obj) { db.DutyChart.Add(obj); Save(); }