示例#1
0
        public static UsersDto FromResults(IEnumerable <UserWithClaims> items, long total, ApiController controller)
        {
            var result = new UsersDto
            {
                Total = total,
                Items = items.Select(x => UserDto.FromUser(x, controller)).ToArray()
            };

            return(result.CreateLinks(controller));
        }
示例#2
0
        public static UsersDto FromResults(IEnumerable <UserWithClaims> items, long total, Resources resources)
        {
            var result = new UsersDto
            {
                Total = total,
                Items = items.Select(x => UserDto.FromUser(x, resources)).ToArray()
            };

            return(result.CreateLinks(resources));
        }