Beispiel #1
0
 //添加订单
 public int OrderAdd(Orderfood orderfood)
 {
     orderfood.Onumber = DateTime.Now.ToString("yyyyMMddhhmmsss");
     return(DBHelper.ExecuteNonQuery(string.Format("insert into Orderfood values('{0}','{1}','{2}')", orderfood.Onumber, orderfood.Odate, orderfood.Ouid)));
 }
Beispiel #2
0
 // POST: api/Order
 //添加订单
 public int Post([FromBody] Orderfood u)
 {
     return(dal.OrderAdd(u));
 }