Sources/Infrastructure/Assemblers/IdentityRoleAssembler.cs
/// <summary>
/// assemble from identity role list to result role list
/// </summary>
/// <param name="roleList">identity role list</param>
/// <returns>Result role list</returns>
assemble from identity role list to result role list
assemble from identity role list to result role list
internal static IEnumerable<RoleResult> ToResultList(this IEnumerable<Role> roleList)
        {
            if (roleList == null || !roleList.Any())
            {
                return null;
            }
            return roleList.Where(r => r != null).Select(r => r.ToResult());
        }
internal static IEnumerable < RoleResult > ToResultList ( this IEnumerable < Role > roleList ) { if ( roleList == null || ! roleList . Any ( ) ) { return null ; } return roleList . Where ( r => r != null ) . Select ( r => r . ToResult ( ) ) ; }
assemble from identity role list to result role list
assemble from identity role list to result role list
Result role list
Result role list
IEnumerable<Role>
this
roleList
identity role list
identity role list