//添加订单 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))); }
// POST: api/Order //添加订单 public int Post([FromBody] Orderfood u) { return(dal.OrderAdd(u)); }