Example #1
0
 public IndividualOrganizationResponse UpdateOrganization(Organization organization)
 {
     var body = new { organization };
     return GenericPut<IndividualOrganizationResponse>(string.Format("organizations/{0}.json", organization.Id), body);
 }
Example #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);
 }
Example #3
0
 public IndividualOrganizationResponse CreateOrganization(Organization organization)
 {
     var body = new {organization};
     return GenericPost<IndividualOrganizationResponse>("organizations.json", body);
 }
Example #4
0
 public async Task<IndividualOrganizationResponse> CreateOrganizationAsync(Organization organization)
 {
     var body = new {organization};
     return await GenericPostAsync<IndividualOrganizationResponse>("organizations.json", body);
 }