Esempio n. 1
0
        public ActionResult Index(int newCategoryId = 0)
        {
            AdminNewViewModel model = new AdminNewViewModel();

            model.ListNew = newRepository.GetListNewAdmin(newCategoryId);
            //var model = newRepository.News.Where(x => x.TrangThai == true).ToList();
            return(View(model));
        }