Esempio n. 1
0
        public ActionResult Detail(int id)
        {
            var dao   = new OrderDetailDao();
            var model = dao.Detail(id);

            int product_id = int.Parse(model.FirstOrDefault().ProductID.ToString());

            var product_dao = new ProductDao();

            var product_model = product_dao.ViewDetail(product_id);

            ViewBag.Quantity = int.Parse(model.FirstOrDefault().Quantity.ToString());
            return(View(product_model));
        }