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