예제 #1
0
        public ActionResult Index(int pageIndex = 1)
        {
            int pageSize = 20;

            AdminUserInfo_IndexVD vd = new AdminUserInfo_IndexVD()
            {
                AdminUserInfoList = this._adminUserInfoService.GetObjectList(pageIndex, pageSize, z => true, z => z.Id, OrderingType.Descending)
            };

            return(View(vd));
        }
예제 #2
0
        public ActionResult Index(int pageIndex = 1)
        {
            var seh = new SenparcExpressionHelper <AdminUserInfo>();

            var where = seh.BuildWhereExpression();

            var admins = _adminUserInfoService.GetObjectList(pageIndex, 20, where, z => z.Id, OrderingType.Descending);
            var vd     = new AdminUserInfo_IndexVD()
            {
                AdminUserInfoList = admins
            };

            return(View(vd));
        }
예제 #3
0
        public ActionResult Index(int pageIndex = 1)
        {
            var seh = new SenparcExpressionHelper <AdminUserInfo>();

            seh.ValueCompare.AndAlso(true, z => !string.IsNullOrEmpty(z.Note) && !string.IsNullOrEmpty(z.RealName));
            var where = seh.BuildWhereExpression();


            var admins = _adminUserInfoService.GetObjectList(pageIndex, 1000, where, z => z.Id, OrderingType.Ascending);
            var vd     = new AdminUserInfo_IndexVD()
            {
                AdminUserInfoList = admins
            };

            return(View(vd));
        }