public async Task <IEnumerable <Person> > GetAllAsync(int pageNumber, int pageSize) { //Example of custom data GenFu.GenFu.Configure <Person>() .Fill(p => p.NumberOfKids) .WithinRange(1, 25); IEnumerable <Person> result = await _dataGeneratorService.Collection(100); return(result.Skip((pageNumber - 1) * pageSize).Take(pageSize)); }