public ActionResult Order_Detail(int id = 1) { var session = Session[Common.CommonConstants.Customer_SESSION] as Common.CustomerLogin; if (session == null) { return(Redirect("/")); } ViewBag.customer = new CustomerAccountDAO().getCustomerAccount(session.Email); ViewBag.order = new OrderDAO().GetOrder(id); Order_Detail orderDetailDAO = new Order_Detail(); var listOrder_Detail = orderDetailDAO.ListAll(id).ToList(); ViewBag.tong = string.Format("{0:N0} VND", orderDetailDAO.TongTien(id)); return(View(listOrder_Detail)); }