public ActionResult Index(int pageIndex = 1, int pageSize = 15)
        {
            int    count  = 0;
            string strSql = string.Empty;
            var    lists  = PersonalCenterConfigManager.GetPersonalCenterConfigList(strSql, pageSize, pageIndex, out count);

            var list  = new OutData <List <PersonalCenterConfig>, int>(lists, count);
            var pager = new PagerModel(pageIndex, pageSize)
            {
                TotalItem = count
            };

            return(View(new ListModel <PersonalCenterConfig>(list.ReturnValue, pager)));
        }
        public ActionResult Index(int pageIndex = 1, int pageSize = 15)
        {
            int    count  = 0;
            string strSql = string.Empty;
            var    lists  = PersonalCenterConfigManager.GetPersonalCenterConfigList(strSql, pageSize, pageIndex, out count);

            var list  = new OutData <List <PersonalCenterConfig>, int>(lists, count);
            var pager = new PagerModel(pageIndex, pageSize)
            {
                TotalItem = count
            };
            var locationList = new BannerConfigController().LocationDropDownList();

            foreach (var model in list.ReturnValue)
            {
                var locationNameModel = locationList.Find(t => t.Id == model.Location.ToString());
                model.LocationName = locationNameModel != null ? locationNameModel.Name : "";
            }
            return(View(new ListModel <PersonalCenterConfig>(list.ReturnValue, pager)));
        }