@@ -30,9 +30,9 @@ public async Task<SearchResult<Customer>> ListAsync(Dictionary<string, object> q
3030 return searchResult ;
3131 }
3232
33- public async Task < Customer > CreateAsync ( Dictionary < string , object > data )
33+ public async Task < Customer > CreateAsync ( Dictionary < string , object > data , Dictionary < string , object > queryParams = null )
3434 {
35- var response = await client . PostAsync ( Router . CreateCustomer ( ) , new StringContent ( JsonConvert . SerializeObject ( data ) , Encoding . UTF8 , "application/json" ) ) ;
35+ var response = await client . PostAsync ( Router . CreateCustomer ( queryParams ) , new StringContent ( JsonConvert . SerializeObject ( data ) , Encoding . UTF8 , "application/json" ) ) ;
3636 var resultString = await response . Content . ReadAsStringAsync ( ) ;
3737 if ( ! response . IsSuccessStatusCode )
3838 {
@@ -69,9 +69,9 @@ public async Task<Customer> DeleteAsync(string id)
6969 return customer ;
7070 }
7171
72- public async Task < Customer > UpdateAsync ( string id , Dictionary < string , object > data )
72+ public async Task < Customer > UpdateAsync ( string id , Dictionary < string , object > data , Dictionary < string , object > queryParams = null )
7373 {
74- var response = await client . PutAsync ( Router . UpdateCustomer ( id ) , new StringContent ( JsonConvert . SerializeObject ( data ) , Encoding . UTF8 , "application/json" ) ) ;
74+ var response = await client . PutAsync ( Router . UpdateCustomer ( id , queryParams ) , new StringContent ( JsonConvert . SerializeObject ( data ) , Encoding . UTF8 , "application/json" ) ) ;
7575 var resultString = await response . Content . ReadAsStringAsync ( ) ;
7676 if ( ! response . IsSuccessStatusCode )
7777 {
0 commit comments