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