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