public ActionResult DetailOrder(long id) { SetActiveSlideBar(Constants.SLIDEBAR_AD_HOME); var orderdetail = new OrderDetailDao().ListOrderDetailById(id); var order = new OrderDao().GetOrderById(id); var user = new UserDao().Detail(order.CustomerID.Value); var product = new ProductDao().ListAllProduct(); var tableorderdetail = orderdetail.Join(product, x => x.ProductID, y => y.ID, (d, p) => new JoinProduct_OrderDetail { OrderDetail = d, Product = p }).ToList(); ViewBag.Order = order; ViewBag.User = user; new LogDao().SetLog("Admin_Home_DetailOrder", null, ((User)Session[Constants.USER_INFO]).ID); return(View(tableorderdetail)); }