public void Update(Punct3 punct) { using (var context = new MasterContext()) { context.Entry(punct).State = EntityState.Modified; context.SaveChanges(); } }
public void DeleteClient(Punct3 punct) { using (var context = new MasterContext()) { context.Entry(punct).State = EntityState.Deleted; context.SaveChanges(); } }
public void AddPunct3(Punct3 punct) { using (var context = new MasterContext()) { context.Set <Punct3>().Add(punct); context.SaveChanges(); } }