Пример #1
0
        // GET: Client/Detail
        public ActionResult Index(int id)
        {
            DetailDao dao = new DetailDao();
            sanpham   sp  = dao.getDetail(id);

            return(View(sp));
        }
Пример #2
0
        // GET: Client/Detail
        public ActionResult Index(int id)
        {
            DetailDao dao = new DetailDao();
            sanpham   sp  = dao.getDetail(id);

            ViewData["maloaisp"] = dao.getMaloaisanpham(id);
            return(View(sp));
        }
Пример #3
0
        public Post getDetail(int id)
        {
            IEnumerable <Post> list = detailDao.getDetail(id);

            return(list.FirstOrDefault());
        }