public ActionResult Index()
        {
            FooterModel model = new FooterModel()
            {
                VeChungTois    = _menuRepository.GetMany(o => o.Style == "ve-chung-toi" && o.ok && o.idControl != 0).OrderByDescending(o => o.sDate).Take(4).ToList(),
                HoTros         = _menuRepository.GetMany(o => o.Style == "ho-tro" && o.ok && o.idControl != 0).OrderByDescending(o => o.sDate).Take(4).ToList(),
                TuKhoaTimKiems = _tuKhoaTimKiemRepository.DanhSachTuKhoa(),
                CauHinh        = _cauHinhRepository.GetAll().FirstOrDefault()
            };

            return(View("FooterPartial", model));
        }
Example #2
0
        public ActionResult Index()
        {
            IList <CauHinh> tags = _cauHinhRepository.GetAll().ToList();

            return(View("Index", tags));
        }