// GET: Admin/SanPhamAdmin/Create public ActionResult Create() { ViewBag.MaHang = new SelectList(NhaSanXuatBus.DanhSach(), "MaHang", "TenHang"); ViewBag.MaLoai = new SelectList(LoaiSanPhamBus.DanhSach(), "MaLoai", "TenLoai"); ViewBag.MaTinhTrang = new SelectList(TinhTrangSanPhamBus.DanhSach(), "MaTinhTrang", "TenTinhTrang"); return(View()); }
// GET: Admin/SanPhamAdmin/Edit/5 public ActionResult Edit(int id) { ViewBag.MaHang = new SelectList(NhaSanXuatBus.DanhSach(), "MaHang", "TenHang"); ViewBag.MaLoai = new SelectList(LoaiSanPhamBus.DanhSach(), "MaLoai", "TenLoai"); ViewBag.MaTinhTrang = new SelectList(TinhTrangSanPhamBus.DanhSach(), "MaTinhTrang", "TenTinhTrang"); var db = SanPhamBus.ChiTiet(id); return(View(db)); }
// GET: Admin/NhaSanXuatAdmin public ActionResult Index() { var db = NhaSanXuatBus.DanhSach(); return(View(db)); }
//catch //{ // return View(); // GET: Admin/AdminSP/Edit/5 public ActionResult Edit(string id) { ViewBag.MaNhaSX = new SelectList(NhaSanXuatBus.DanhSach(), "MaNhaSX", "TenNhaSX"); ViewBag.MaLoaiSanPham = new SelectList(PhanLoaiBus.DanhSach(), "MaLoaiSP", "TenLoaiSP"); return(View(MobileShopBus.ChiTiet(id))); }
// GET: Admin/AdminSP/Create // GET: Admin/AdminSP/Create public ActionResult Create() { ViewBag.MaNhaSX = new SelectList(NhaSanXuatBus.DanhSach(), "MaNhaSX", "TenNhaSX"); ViewBag.MaLoaiSP = new SelectList(PhanLoaiBus.DanhSach(), "MaLoaiSP", "TenLoaiSP"); return(View()); }
// GET: SanPham/Create public ActionResult Create() { ViewBag.MaNSX = new SelectList(NhaSanXuatBus.DanhSach(), "MaNSX", "TenNSX"); return(View()); }