Beispiel #1
0
        /// <summary>
        /// 查询并分页获取Web API角色信息。
        /// </summary>
        /// <param name="so">查询条件</param>
        /// <returns>返回Web API角色的分页查询结果</returns>
        public ResponseSet<Role> SearchRoles(RoleSO so)
        {
            so = so ?? new RoleSO();

            return this.InvokePagingService(
                nameof(SearchRoles),
                (out int totalRecords) => this.Persistence.QueryForPaginatedList<Role>(NS, "SearchRoles", out totalRecords, so),
                so);
        }
Beispiel #2
0
        /// <summary>
        /// 显示角色列表。
        /// </summary>
        /// <param name="so">查询条件</param>
        /// <returns>显示视图</returns>
        public ActionResult Index(RoleSO so)
        {
            var model = this.RoleService.SearchRoles(so);

            return View(model);
        }