public async Task <UserSearchResult> List(IUserSearchQuery query) { var results = await repo.List(new InputModels.IdServerUserQuery() { Limit = query.Limit, Offset = query.Offset, UserId = query.UserId, UserName = query.UserName }); return(new UserSearchResult() { Results = results.Items, Total = results.Total }); }
public Task <IdServerUserCollection> List([FromBody] IdServerUserQuery query) { return(repo.List(query)); }