Esempio n. 1
0
        public ActionResult NhaSanXuat(int MaNSX)
        {
            var ds = SanPhamBus.SanPhambyNSX(MaNSX);

            ViewBag.NhaSanXuat = NhaSanXuatBus.ChiTiet(MaNSX);
            return(View(ds));
        }
Esempio n. 2
0
        // GET: SanPham/Details/5
        public ActionResult Details(int id)
        {
            var sp  = SanPhamBus.ChiTiet(id);
            var nsx = NhaSanXuatBus.ChiTiet(sp.MaNSX);

            return(View(new SanPhamViewModels()
            {
                SanPham = sp, NhaSanXuat = nsx
            }));
        }
        // GET: Admin/NhaSanXuatAdmin/Delete/5
        public ActionResult Delete(int id)
        {
            var db = NhaSanXuatBus.ChiTiet(id);

            return(View(db));
        }