Exemplo n.º 1
0
 public int setPedido(Int32 item, Int16 cantidad, string observacion)
 {
     LinqDBDataContext db = new LinqDBDataContext();
     int resp;
     try
     {
         resp = (Int32)db.AddItemPedido(item, cantidad, this.id_pedido, observacion);
     }
     catch
     {
         resp = -1;
     }
     return resp;
 }