Example #1
0
 public Task <ServerResponse <List <GasStationsDashboardItem> > > GetGasStations()
 {
     return(QueryingExtensions.GetAllPages((pageNumber, pageSize) => httpClient
                                           .Get <GasStationsDashboard>($"{Route}/gas-stations",
                                                                       new GetGasStationsDashboard
     {
         PageNumber = pageNumber,
         PageSize = pageSize
     })
                                           .ContinueWith(x => x.Result.To <PageResponse <GasStationsDashboardItem> >())));
 }
Example #2
0
 public Task <ServerResponse <List <T> > > GetAllPages <T>(object queryParameters = null) where T : class
 {
     return(QueryingExtensions.GetAllPages((pageNumber, pageSize) => GetPage <T>(pageNumber, pageSize, queryParameters)));
 }