예제 #1
0
        /// <summary>
        /// Returns a collection of System_User_Roles filtered on the following criteria: Role_Id. The pagingInfo parameters are used for paging.
        /// </summary>
        /// <param name="pagingInfo">a container for the paging parameters. </param>
        /// <results>Returns a strongly typed list of System_User_Roles. </results>
        public List <System_User_Roles> GetSystem_User_RolesByRole_Id(Int32 role_Id, PagingInfo pagingInfo)
        {
            List <System_User_Roles> val;
            long totalCount;

            if (pagingInfo == null || pagingInfo.GetAll)
            {
                val = System_User_Roles.GetSystem_User_RolesByRole_Id(role_Id);
                if (pagingInfo != null)
                {
                    pagingInfo.TotalCount = val.Count;
                }
            }
            else
            {
                pagingInfo.Normalize();
                val = System_User_Roles.GetSystem_User_RolesByRole_Id(role_Id, pagingInfo.PageSize, pagingInfo.StartingRowNumber, pagingInfo.PageNr, out totalCount);
                pagingInfo.TotalCount = totalCount;
            }
            return(val);
        }
예제 #2
0
 private List <System_User_Roles> GetSystem_User_Roles()
 {
     return(System_User_Roles.GetSystem_User_RolesByRole_Id(Role_Id));
 }