Exemplo n.º 1
0
 public int setMenu(Int32 item, Int16 cantidad, DateTime fecha, Boolean horario)
 {
     LinqDBDataContext db = new LinqDBDataContext();
     int resp;
     try
     {
         resp = (Int32)db.AddItemMenu(item, cantidad, fecha, horario);
     }
     catch
     {
         resp = -1;
     }
     return resp;
 }