예제 #1
0
        public PartialViewResult listCategory()
        {
            var dao   = new categoryDao();
            var model = dao.getAllCategory();

            return(PartialView(model));
        }
예제 #2
0
        public ActionResult ItemDetail(string prid = "PRO0001")
        {
            var dao    = new productDao();
            var dao2   = new categoryDao();
            var model  = dao.viewProductDetail(prid);
            var lstCat = dao2.getAllCategory();

            ViewBag.lstCat = lstCat;
            return(View(model));
        }