public async Task <List <OpenIddictApplicationDescriptor> > FilterAsync([FromQuery] FilterBase filter) { if (filter.PageIndex < 1) { filter.PageIndex = 1; } var offset = (filter.PageIndex - 1) * filter.PageSize; return((List <OpenIddictApplicationDescriptor>)_store.ListAsync(filter.PageSize, offset)); }
public List <OpenIddictApplication> List(int pageIndex = 1, int pageSize = 100) { if (pageIndex < 1) { pageIndex = 1; } var offset = (pageIndex - 1) * pageSize; return((List <OpenIddictApplication>)_manager.ListAsync(pageSize, offset)); }