Esempio n. 1
0
        public ActionResult DeleteSection()
        {
            SectionDAO dao          = new SectionDAO();
            var        list_section = dao.GetListSection();

            ViewBag.Count = dao.GetSectionCount();
            return(View(list_section));
        }
Esempio n. 2
0
        public ActionResult AddArticle()
        {
            SectionDAO sectionDAO = new SectionDAO();

            ViewBag.Section = sectionDAO.GetListSection();
            ViewBag.Count   = sectionDAO.GetSectionCount();
            return(View());
        }
Esempio n. 3
0
        public ActionResult ChangeArticle(int id)
        {
            ArticleDAO articleDAO = new ArticleDAO();
            var        article    = articleDAO.GetArticle(id);
            SectionDAO sectionDAO = new SectionDAO();

            ViewBag.Section = sectionDAO.GetListSection();
            ViewBag.Count   = sectionDAO.GetSectionCount();
            return(View(article));
        }