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