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)); }
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)); }