Esempio n. 1
0
 public int updateProdxOrd(PRODUCTO_X_ORDEN ProxOrd)
 {
     try
     {
         using (context = new PROIVEntities())
         {
             context.Entry(ProxOrd).State = System.Data.Entity.EntityState.Modified;
             context.SaveChanges();
         }
         return(1);
     }
     catch (Exception)
     {
         return(0);
     }
 }
Esempio n. 2
0
 public int updateOrden(ORDENE order)
 {
     try
     {
         using (context = new PROIVEntities())
         {
             context.Entry(order).State = System.Data.Entity.EntityState.Modified;
             context.SaveChanges();
         }
         return(1);
     }
     catch (Exception)
     {
         return(0);
     }
 }