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 }); }
public ActionResult Edit(OrderInfo orderinfo) { bool result = orderinfoservice.Update(orderinfo); if (result) { return(Content("编辑成功")); } else { return(Content("编辑失败")); } }