private static IRestRequest CreateBackendListRequest( int?offset, int?limit, Taal language, int?addressId, string sort, string status) { var filter = new BuildingUnitFilter { AddressPersistentLocalId = addressId?.ToString(), Status = status }; var sortMapping = new Dictionary <string, string> { { "Id", "PersistentLocalId" }, }; return(new RestRequest("gebouweenheden?taal={language}") .AddParameter("language", language, ParameterType.UrlSegment) .AddPagination(offset, limit) .AddFiltering(filter) .AddSorting(sort, sortMapping)); }
private static IRestRequest CreateBackendCountRequest(int?addressId) { var filter = new BuildingUnitFilter { AddressPersistentLocalId = addressId?.ToString() }; return(new RestRequest("gebouweenheden/totaal-aantal") .AddFiltering(filter)); }