public ActionResult MenuBookCategory()
        {
            var dao   = new BookCategoryDAO();
            var model = dao.listBookCategoryClient();

            return(PartialView(model));
        }
Exemplo n.º 2
0
        //Phương thức này để khởi tạo cho Dropdownlist CategoryID trong View CreateProduct
        public void SetViewBag(long?selectedID = null)
        {
            var dao = new BookCategoryDAO();

            ViewBag.CategoryID = new SelectList(dao.listBookCategoryClient(), "id", "Name", selectedID);
        }