Esempio n. 1
0
        /// <summary>
        /// 查询并分页获取WebApi用户信息。
        /// </summary>
        /// <param name="so">查询条件</param>
        /// <returns>返回WebApi用户的分页查询结果</returns>
        public ResponseSet<User> SearchUsers(UserSO so)
        {
            so = so ?? new UserSO();

            return this.InvokePagingService(
                nameof(SearchUsers),
                (out int totalRecords) => this.Persistence.QueryForPaginatedList<User>(NS, "SearchUsers", out totalRecords, so),
                so);
        }
Esempio n. 2
0
        /// <summary>
        /// 用户管理首页。
        /// </summary>
        /// <returns>首页视图</returns>
        public ActionResult Index(UserSO so)
        {
            var model = this.UserService.SearchUsers(so);

            return View(model);
        }