Esempio n. 1
0
 public ActionResult Create()
 {
     ViewBag.danhmuc = danhMucDAO.dsDanhMuc();
     ViewBag.theloai = theLoaiDAO.dsTheLoai();
     ViewBag.tacgia  = tacGiaDAO.dsTacGia();
     ViewBag.nxb     = nXBDAO.dsNXB();
     return(View());
 }
Esempio n. 2
0
        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()));
        }