Exemplo n.º 1
0
        public ActionResult detail(string MASP)
        {
            SanPhamDao dao = new SanPhamDao();
            SanPham    sp  = dao.detail(MASP);

            return(View(sp));
        }
Exemplo n.º 2
0
        public ActionResult detailSP(string MASP)
        {
            SanPhamDao            dao  = new SanPhamDao();
            BINHLUANDao           dao1 = new BINHLUANDao();
            SanPham               sp   = dao.detail(MASP);
            IQueryable <BINHLUAN> bl   = dao1.ListBL(MASP);
            var slbl = dao1.SLBL(MASP);

            ViewBag.SLBL = slbl;
            CMTofSP cmt = new CMTofSP()
            {
                SanPham = sp,
                listBL  = bl
            };

            return(View(cmt));
        }