Esempio n. 1
0
 public IndividualOrganizationResponse UpdateOrganization(Organization organization)
 {
     var body = new { organization };
     return GenericPut<IndividualOrganizationResponse>(string.Format("organizations/{0}.json", organization.Id), body);
 }
Esempio n. 2
0
 public async Task<IndividualOrganizationResponse> UpdateOrganizationAsync(Organization organization)
 {
     var body = new { organization };
     return await GenericPutAsync<IndividualOrganizationResponse>(string.Format("organizations/{0}.json", organization.Id), body);
 }
Esempio n. 3
0
 public IndividualOrganizationResponse CreateOrganization(Organization organization)
 {
     var body = new {organization};
     return GenericPost<IndividualOrganizationResponse>("organizations.json", body);
 }
Esempio n. 4
0
 public async Task<IndividualOrganizationResponse> CreateOrganizationAsync(Organization organization)
 {
     var body = new {organization};
     return await GenericPostAsync<IndividualOrganizationResponse>("organizations.json", body);
 }