예제 #1
0
        public ActionResult ProductDetail(long id)
        {
            var model  = new CodeProduct();
            var result = model.ViewDetail(id);

            return(View(result));
        }
예제 #2
0
        public ActionResult Edit(long ID)
        {
            var model  = new CodeProduct();
            var result = model.ViewDetail(ID);

            SetViewBag(result.ID);
            return(View(result));
        }