Пример #1
0
 public void InsertarCDP(VentaCDP cdp)
 {
     using (var dbc = new SPC_BD())
     {
         dbc.VentaCDP.Add(cdp);
         dbc.SaveChanges();
     }
 }
Пример #2
0
 public void ActualizarCDP(VentaCDP cdp)
 {
     using (var dbc = new SPC_BD())
     {
         dbc.Entry(cdp).State = EntityState.Modified;
         dbc.SaveChanges();
     }
 }