Beispiel #1
0
 public bool DianCai(int orderId, int dishId)
 {
     if (oiDal.HasCai(orderId, dishId))   //是否已有此菜
     {
         //菜的数量加1
         return(oiDal.CaiJiaYiFeng(orderId, dishId) > 0);
     }
     else
     {
         //点新的菜
         return(oiDal.DianCai(orderId, dishId) > 0);
     }
 }
Beispiel #2
0
 public bool DianCai(int OId, int DId)
 {
     return(oiDal.DianCai(OId, DId) > 0);
 }
Beispiel #3
0
 public bool DianCai(int orderId, int dishId)
 {
     return(oiDal.DianCai(orderId, dishId) > 0);
 }
Beispiel #4
0
 public bool DianCai(int Did, int Oid)
 {
     return(dal.DianCai(Did, Oid) > 0);
 }
Beispiel #5
0
 public bool DianCai(int orderid, int dishid)
 {
     return(_oiDal.DianCai(orderid, dishid) > 0);
 }