Exemplo n.º 1
0
        public async Task <MessageModel <bool> > ConfirmOrder(int orderId)
        {
            var result = await orderInfoService.QueryByID(orderId);

            result.Status = 7;
            var success = await orderInfoService.Update(result);

            return(new MessageModel <bool>
            {
                success = success
            });
        }
Exemplo n.º 2
0
        public ActionResult Edit(OrderInfo orderinfo)
        {
            bool result = orderinfoservice.Update(orderinfo);

            if (result)
            {
                return(Content("编辑成功"));
            }
            else
            {
                return(Content("编辑失败"));
            }
        }