public ActionResult UserOrderDetail(string OrderId) { ViewBag.OrderDetail = orderMapper.getOrderDetail(int.Parse(OrderId)).ElementAt <BookOrder>(0); ViewBag.OrderItemList = orderMapper.ListAllOrderItems(int.Parse(OrderId)); ViewBag.OrderList = orderMapper.SearchOrdersByUserId(Session["userId"].ToString()); return(View("UserPage")); }
//查看某个订单详情 public ActionResult OrderDetail(int OrderId) { ViewBag.OrderItemList = orderMapper.ListAllOrderItems(OrderId); ViewBag.Order = orderMapper.getOrderDetail(OrderId).ElementAt <BookOrder>(0); return(View("ManageOrder")); }