public ActionResult Create() { ViewBag.danhmuc = danhMucDAO.dsDanhMuc(); ViewBag.theloai = theLoaiDAO.dsTheLoai(); ViewBag.tacgia = tacGiaDAO.dsTacGia(); ViewBag.nxb = nXBDAO.dsNXB(); return(View()); }
public ActionResult Index(int page = 1, int pagesize = 8) { SachDAO sachDAO = new SachDAO(); TheLoaiDAO theLoaiDAO = new TheLoaiDAO(); ViewBag.sanphammoi = sachDAO.dsSanPhamTheoUuTien(3, page, pagesize).Take(4); ViewBag.loaisanpham = theLoaiDAO.dsTheLoai(); ViewBag.danhsachban = sachDAO.dsBan(page, pagesize); ViewBag.hethang = sachDAO.dsHetHang(page, pagesize); return(View()); }
// GET: Admin/QuanLyTheLoai public ActionResult Index() { TheLoaiDAO theLoaiDAO = new TheLoaiDAO(); return(View(theLoaiDAO.dsTheLoai())); }