Esempio n. 1
0
        public ActionResult DanhGiaSp(PhanHoi ph, int masanpham)
        {
            SanPhamDao   spDao = new SanPhamDao();
            DanhGiaSpDao dgDao = new DanhGiaSpDao();

            if (ModelState.IsValid)
            {
                dgDao.DanhGiaSp(ph);
            }
            return(View("ChiTietSp", spDao.searchProduct(masanpham)));
        }
Esempio n. 2
0
        public ActionResult PhanHoi(PhanHoi ph)
        {
            DanhGiaSpDao dgDao = new DanhGiaSpDao();

            if (ModelState.IsValid)
            {
                dgDao.DanhGiaSp(ph);
                return(View("CamOn"));
            }
            return(View("Index"));
        }