public ActionResult tinNghienCuu(int id)
        {
            SubCategoryDAO subCateDao = new SubCategoryDAO();

            ViewBag.lisSubCate = subCateDao.getSubCate(6);
            newsDAO newdao = new newsDAO();

            ViewBag.lisNew = newdao.getListNewsSub(id);
            return(View());
        }
        // GET: NghienCuu
        public ActionResult Index()
        {
            SubCategoryDAO subCateDao = new SubCategoryDAO();

            ViewBag.lisSubCate = subCateDao.getSubCate(6);
            UnitCategoryDAO unitCateDao = new UnitCategoryDAO();

            //  ViewBag.lisUnit = unitCateDao.getListUnitCate();
            return(View());
        }
Esempio n. 3
0
        public ActionResult TinHopTac(int id)
        {
            SubCategoryDAO subCateDao = new SubCategoryDAO();

            ViewBag.lisSubCate = subCateDao.getSubCate(7);
            newsDAO newdao = new newsDAO();

            ViewBag.lisNew = newdao.getListNewsSub(id);
            return(View());
        }
    public void populateList()
    {
        ProductDAO     objProd   = new ProductDAO();
        CategoryDAO    objCat    = new CategoryDAO();
        SubCategoryDAO objSubCat = new SubCategoryDAO();
        String         ord;

        ord                 = "Order by name ";
        dataListProduct     = objProd.SelectObject(ord);
        dataListCategory    = objCat.SelectObject(ord);
        dataListSubCategory = objSubCat.SelectObject(ord);
    }
Esempio n. 5
0
public ActionResult Product(){
   ProductDAO objProd = new ProductDAO();
   CategoryDAO objCat = new CategoryDAO();
   SubCategoryDAO objSubCat = new SubCategoryDAO();
   List<Product> listProduct  = new List<Product>();
   List<Category> listCategory  = new List<Category>();
   List<SubCategory> listSubCategory  = new List<SubCategory>();
   String ord;
   ord = "Order by name";
   listProduct = objProd.SelectObject(ord);
   listCategory = objCat.SelectObject(ord);
   listSubCategory = objSubCat.SelectObject(ord);

return View(Tuple.Create(listProduct, listCategory, listSubCategory);
}